How to silently install to the program files folder?
IRainman opened this issue · 2 comments
IRainman commented
Hello, I try to silently install utility to the program files, but it's not working. Can I fix that behavior?
@echo off
cd /D %~dp0
set AltSnap_VERSION=1.60
echo AltSnap installation begin...
if %PROCESSOR_ARCHITECTURE% == AMD64 (
set AltSnap_PLATFORM_ADD=-x64
) else (
set AltSnap_PLATFORM_ADD=
)
AltSnap%AltSnap_VERSION%%AltSnap_PLATFORM_ADD%-inst.exe /S /D %ProgramFiles%\AltSnap
echo AltSnap installation end.
I use documentation for NSIS framework from here
RamonUnch commented
Actually you need to specify the = after the /D
parameter.
I looked it up in the local doc from the NSIS version I am using so it might have been improved lately.
AltSnap1.60-installer.exe /S /D=C:\Program Files\AltSnap
Works for me.
IRainman commented
Thank you very much