Question:
Windows 10 Chilkat 9.5.045 I've created a executable zip using
.Newzip("Test.exe") .OverwriteExisting = True .exeUnzipDir = "w:" .exeExeDefaultDir = "w:" .ExtractInto("w:") .WriteExe("Test.exe")
I'm sure there is some overkill above. When I run Test.exe, the 'Unzip to Dir:' field has w: in it but after the unzip the data always show up in the c: drive.
Any Ideas? Thanks, Wayne
Is the W: a network drive?
Is running your Test.exe file requiring administrative privileges?
These two things together might be causing a problem with the W: drive not being available. By default Windows network shares are only available to the users, not the administrative privileged user.
What says zip.lastErrorText() ???
If I run a command prompt with 'Test.exe -log Test.log' the log shows
command line: -log Test.log
Created by version 15.0.0
Sep 13 2014
<?xml version="1.0" encoding="utf-8" ?>
<SfxConfig>
<AutoTemp>0</AutoTemp>
<DeleteAfterSetup>0</DeleteAfterSetup>
<ShowFin>1</ShowFin>
<ShowMain>1</ShowMain>
<ShowProgress>1</ShowProgress>
<WaitForSetup>1</WaitForSetup>
<Encryption>0</Encryption>
<KeyLength>128</KeyLength>
<MainTitle>RTSSi - Self Extracting Executable</MainTitle>
<MainCaption>Select Unzip to Start, Close to Cancel</MainCaption>
<UnzipDir>w:\</UnzipDir>
<DefaultDir>w:\</DefaultDir>
<VersionCreatedBy>15.0.0</VersionCreatedBy>
</SfxConfig>
Log opened from internal point 2
Showing main dialog...
Not encrypted.
Current working directory: C:\_Temp\_Temp
unzipDir = [w:\]
Check/create extract dir: [w:\]
No top-level directory added to undo list
Final unzip dir: [w:\]...
Setting CWD [w:\]
Unzip complete...
processing undo list...
processing undo list...
Initialization finished.
Log opened from internal point 1
Closing log from WinMain.
exitCode = 0
Thanks, Wayne
Here's the lastErrorText from the build command (zip.Write(xxxTest.exe))
ChilkatLog: WriteExe(234ms): D
llDate: Oct 7 2014 ChilkatVersion: 9.5.0.45
UnlockPrefix: RTSSICZIP
Username: WS2:WayneHaas
Architecture: Little Endian; 32-bit
Language: .NET 2.0
VerboseLogging: 1
writeExeToOutput(125ms):
SfxRuntimeSize: 409600
writeExeToOutput2(125ms):
<SfxConfig>
<AutoTemp>0</AutoTemp>
<DeleteAfterSetup>0</DeleteAfterSetup>
<ShowFin>1</ShowFin>
<ShowMain>1</ShowMain>
<ShowProgress>1</ShowProgress>
<WaitForSetup>1</WaitForSetup>
<Encryption>0</Encryption>
<KeyLength>128</KeyLength>
<MainTitle>RTSSi - Self Extracting Executable</MainTitle>
<MainCaption>Unzip to Start, Close to Cancel</MainCaption>
<UnzipDir>w:\</UnzipDir>
<DefaultDir>w:\</DefaultDir>
<VersionCreatedBy>15.0.0</VersionCreatedBy>
</SfxConfig>
appendToSimpleArchive:
deflateFromSource:
firstChunkNumBytes: 32768
End of data source.
Finalizing compressed output...
outputChunkSize: 1981
outputComplete: 1
outputByteCount: 84539
--deflateFromSource
--appendToSimpleArchive
--writeExeToOutput2
--writeExeToOutput
Success.
--WriteExe
--ChilkatLog
Thanks, Wayne