grahama
3rd June 2005 19:14 UTC
installer that copies itself while executing
is there any reason why this would not work ?
I am trying to get the executing installer to copy itself
CopyFiles /SILENT "$EXEDIR\${myExecutingInstaller}.exe" "$DESKTOP\${myExecutingInstaller}.exe"
many thanks
g
Takhir
3rd June 2005 19:49 UTC
This worked on my comp
CopyFiles /SILENT "$EXEDIR\${APP_NAME}.exe" "$DESKTOP\${APP_NAME}.exe"
IfFileExists "$DESKTOP\${APP_NAME}.exe" 0 +2
MessageBox MB_OK "${APP_NAME}.exe exists"
grahama
3rd June 2005 21:11 UTC
this is a code snippet which for some odd reason always says the file does not exist :(
what stupid thing have I done ?
FYI, $EXEDIR\${FILETITLE}.exe
grahama
3rd June 2005 21:21 UTC
let me try this again
WithinInternetCacheFolder:
;copy exe to the desktop
messagebox MB_OK "Within Internet Cache Folder"
CopyFiles "$EXEDIR\${FILETITLE}.exe" "$DESKTOP\${FILETITLE}.exe"
messagebox MB_OK "Copied $EXEDIR\${FILETITLE}.exe to $DESKTOP\${FILETITLE}.exe"
sleep 1000
IfFileExists "$DESKTOP\${FILETITLE}.exe" exist noexist
exist:
messagebox MB_OK "${FILETITLE}.exe exists"
goto done
noexist:
messageBOX MB_OK "${FILETITLE}.exe DOES NOT exists"
goto done
grahama
4th June 2005 04:27 UTC
FYI, $EXEDIR is the Temporary internet cache directory for Internet Explorer
would that make some kind of difference ?