|
Post by 1222tmiller on Jan 7, 2011 15:10:33 GMT -5
I am trying to run an auto extracting EXE silently and it is suppose to then run KG_UpdGui2.exe. It is doing neither.
The auto EXE windows pops up with prompts to the user and when you click OK, KG_UpdGui2.exe doesn't run once the extraction is over. I have 3 and 4, not sure which one the program is compiled with. What am I doing wrong?
Here are the property settings:
aSFXConfig.AutoExtract := True; aSFXConfig.Caption := 'VCLZip Self Extracting Archive'; aSFXConfig.CmdLine := '><KG_UpdGui2.exe|><' + ExtractFileName(FAppExeName); aSFXConfig.InfoTitle := 'VCLZip SFX'; aSFXConfig.OverwriteMode := omAlways; aSFXConfig.UserCanChangeOverwrite := False; aSFXConfig.UserCanChooseFiles := False; aSFXConfig.UserCanDisableCmdLine := False;
aVclZip.Overwritemode := Always;
aFileCount := aVclZip.MakeNewSFX(SFX_STUB, FZipFileName, aSFXConfig.theHeader, aSFXConfig.HeaderLen);
|
|
|
Post by 1222tmiller on Jan 7, 2011 16:50:52 GMT -5
Found the problem. I wasn't creating the deader.
I added this line
aSFXConfig.CreateHeader;
All is working now.
|
|