petersa
20th May 2001, 09:10
Hi guys,
I think I might've uncovered a bug here.
The following code doesn't work:
!PackHdr TEMP.DAT "UPX.EXE --best TEMP.DAT"
OutFile PD.exe
SilentInstall Silent
CRCCheck On
Section ""
SetOutPath "$TEMP\SETUP.PD"
File AUTOMATE.EXE
File PATCH.EXE
File SETUP.EXE
ExecWait "AUTOMATE.EXE"
RMDir /R "$TEMP\SETUP.PD"
SectionEnd
When I run the compiled setup, it extracts the files to $TEMP\SETUP.PD, and seems to not run AUTOMATE.EXE. However, this works:
!PackHdr TEMP.DAT "UPX.EXE --best TEMP.DAT"
OutFile PD.exe
SilentInstall Silent
CRCCheck On
Section ""
SetOutPath "$TEMP\SETUP.PD"
File AUTOMATE.EXE
File PATCH.EXE
File SETUP.EXE
ExecWait "$TEMP\SETUP.PD\AUTOMATE.EXE"
RMDir /R "$TEMP\SETUP.PD"
SectionEnd
But the first piece of code should work though, because Exec and ExecWait set the working directory, which is in this case, $TEMP\SETUP.PD.
I'd be happy with the second piece of code, but something's wrong if I have to specify $TEMP\SETUP.PD\ on the ExecWait command, and I need to have the current directory set to that or hell will break loose.
Hope I haven't lost too many people here.
Anyone?
I think I might've uncovered a bug here.
The following code doesn't work:
!PackHdr TEMP.DAT "UPX.EXE --best TEMP.DAT"
OutFile PD.exe
SilentInstall Silent
CRCCheck On
Section ""
SetOutPath "$TEMP\SETUP.PD"
File AUTOMATE.EXE
File PATCH.EXE
File SETUP.EXE
ExecWait "AUTOMATE.EXE"
RMDir /R "$TEMP\SETUP.PD"
SectionEnd
When I run the compiled setup, it extracts the files to $TEMP\SETUP.PD, and seems to not run AUTOMATE.EXE. However, this works:
!PackHdr TEMP.DAT "UPX.EXE --best TEMP.DAT"
OutFile PD.exe
SilentInstall Silent
CRCCheck On
Section ""
SetOutPath "$TEMP\SETUP.PD"
File AUTOMATE.EXE
File PATCH.EXE
File SETUP.EXE
ExecWait "$TEMP\SETUP.PD\AUTOMATE.EXE"
RMDir /R "$TEMP\SETUP.PD"
SectionEnd
But the first piece of code should work though, because Exec and ExecWait set the working directory, which is in this case, $TEMP\SETUP.PD.
I'd be happy with the second piece of code, but something's wrong if I have to specify $TEMP\SETUP.PD\ on the ExecWait command, and I need to have the current directory set to that or hell will break loose.
Hope I haven't lost too many people here.
Anyone?