login about faq

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

asked Sep 27 '17 at 15:10

whaas1's gravatar image

whaas1
11

Forgot to add - Using VB.net

(Sep 27 '17 at 15:11) whaas1

The formatter is eating the backslashes after the drive letters. The "w: " and "c: " should have a backslash after it.

(Sep 27 '17 at 15:25) whaas1

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.

link

answered Sep 27 '17 at 15:54

TracyP's gravatar image

TracyP
1213

Yes, w: is a network drive.

No, test.exe is not requiring admin privileges.

I'll add the log file from the executable. Thanks

(Sep 28 '17 at 10:33) whaas1

What says zip.lastErrorText() ???

link

answered Sep 28 '17 at 02:39

Vinnie's gravatar image

Vinnie
112

How do I get zip.lastErrorText() since I'm running an executable that was built by chilkat? Or do you want the lastErrorText from the build command (after the zip.WriteExe(xxx/Test.exe))? I'll add the lastErrorText from the build. Thanks

(Sep 28 '17 at 10:43) whaas1

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

link

answered Sep 28 '17 at 10:41

whaas1's gravatar image

whaas1
11

edited Sep 28 '17 at 10:48

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

link

answered Sep 28 '17 at 10:46

whaas1's gravatar image

whaas1
11

edited Sep 28 '17 at 10:47

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×98
×10

Asked: Sep 27 '17 at 15:10

Seen: 414 times

Last updated: Sep 28 '17 at 10:50

powered by OSQA