RamonUnch / AltSnap

Maintained continuation of Stefan Sundin's AltDrag
GNU General Public License v3.0
2.21k stars 74 forks source link

How to silently install to the program files folder? #424

Closed IRainman closed 1 year ago

IRainman commented 1 year ago

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 1 year ago

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 1 year ago

Thank you very much