Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lessmsi.exe crashes on a substed drive #70

Closed
salsifis opened this issue Jul 4, 2016 · 4 comments
Closed

lessmsi.exe crashes on a substed drive #70

salsifis opened this issue Jul 4, 2016 · 4 comments
Assignees

Comments

@salsifis
Copy link

salsifis commented Jul 4, 2016

Suppose I do the following:

subst K: "%HOMEPATH%\Applications"
K:\LessMSI\lessmsi.exe

Then it crashes. If I run, however, %HOMEPATH%\Applications\lessmsi.exe, then it will run smoothly.

@activescott
Copy link
Owner

No idea why that might happen. A stack trace might help point in the right direction. Would be happy to accept a pull request for this.

@salsifis
Copy link
Author

salsifis commented Nov 24, 2016

The following problem seems to be related.

I have the following stack trace on a substed drive with lessmsi.exe x <file.msi> where the current directory is D:\:

Error: System.IndexOutOfRangeException:
   at LessIO.Strategies.Win32.Win32FileSystemStrategy.CreateDirectory(Path path)
   at LessMsi.Msi.Wixtracts.ExtractFiles(Path msi, String outputDir, MsiFile[] filesToExtract, AsyncCallback progressCallback)
   at LessMsi.Cli.Program.DoExtraction(String msiFileName, String outDirName, List`1 filesToExtract)
   at LessMsi.Cli.ExtractCommand.Run(List`1 allArgs)
   at LessMsi.Cli.Program.Main(String[] args)

This happens if I am on D:\, but not when on C:\disk_d\

@activescott activescott self-assigned this Dec 4, 2016
activescott added a commit to activescott/LessIO that referenced this issue Dec 4, 2016
@activescott
Copy link
Owner

...still waiting on a nuget update to be able to push this fix to a full release of lessmsi...

@activescott
Copy link
Owner

activescott added a commit that referenced this issue Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants