CODE
REG ADD %KEY%\005 /VE /D "Performing Additional Tasks" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\FileZilla.exe -y /q /r:n -o%programfiles%" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\FileZilla.exe -y /q /r:n -o%programfiles%" /f
It gets added to my RunOnceEx (in registry) no problem but when I reboot and the extraction should begin it extracts to C:\Program not C:\Program Files.
I thought I'll just enclose in inverted commas like this:
CODE
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\FileZilla.exe -y /q /r:n -o"%programfiles%" "
and the problem will be solved but that doesn't work. It does't even get added to RunOnceEx (-o"%programfiles%" doesn't work as well) .
I could naturally put the content of FileZilla.exe in a Program Files folder and add it to archive like that then just extract to %systemdrive% but that really shouldn't be necessary.
Could anyone help me out with this one, what am I doing wrong?