it doesn't work. Now, I am able to copy the ConvertApp.exe into C:\ and run it from there, and the AutoComplete.stm file will always be found at "C:\Program Files\LiveEditor\AutoComplete.stm" (I am running the converter only if it is detected). However, the user needs to be able to change the install directory, and therefore I need to indicate that when calling the converter program.nsexec:Exec '"C:\ConvertApp.exe" "C:\Program Files\LiveEditor\AutoComplete.stm" "$INSTDIR\AutoComplete"'
Doing it like this works:
and I figured I could just copy over the contents of C:\AutoComplete to $INSTDIR\AutoComplete afterward. That didn't work though. Here is how I tried to do it:nsexec:Exec '"C:\ConvertApp.exe" "C:\Program Files\LiveEditor\AutoComplete.stm" "C:\AutoComplete"'
Thanks.IfFileExists $PROGRAMFILES\LiveEditor\AutoComplete2.stm 0 +8
SetOutPath "C:\"
File "C:\Documents and Settings\ewiener\Desktop\console application\ConvertApp.exe"
nsexec:Exec '"C:\ConvertApp.exe" "C:\Program Files\LiveEditor\AutoComplete.stm" "C:\AutoComplete"'
SetOutPath "$INSTDIR\AutoComplete"
File /nonFatal /r "C:\AutoComplete\*"
RmDir /r "C:\AutoComplete"
Delete "C:\ConvertApp.exe"