Using environment variables with installer /LOADINF

TK1974

New member
Hello!

I tried to use the following commandline to install Spybot v.1.6.2 on multiple computers to the Windows %PROGRAMFILES% directory, which is different on german Windows XP (C:\Programme) and Vista/Win7 32bit/64bit (C:\Program Files (x86) / C:\Program Files):

spybotsd162.exe /silent /noreboot /loadinf="spybot_default.inf"

Content of spybot_default.inf:
[Setup]
Lang=de
Dir="%PROGRAMFILES%\Spybot - Search & Destroy"
Group=Spybot - Search & Destroy
NoIcons=0
SetupType=custom
Components=main,language,skins,updatedl,sdshredder,sdfiles,SDWinSec
Tasks=desktopicon,launchsdhelper


The installer doesn't expand the environment variable and all I get is the actual folder %PROGRAMFILES%\Spybot - Search & Destroy in the current working directory. Also Links on the StartMenu, Uninstaller and the Desktop to Spybot don't work because Windows expands the variable.

I also tried
Dir="\%PROGRAMFILES\%\Spybot - Search & Destroy"
Dir='%PROGRAMFILES%\Spybot - Search & Destroy'
Dir=%PROGRAMFILES%\Spybot - Search & Destroy
with no success.

Any help would be appreciated. Thx!
 
Hello,

Is this a corporate environment as you try to install Spybot - Search & Destroy on multiple machines?

Best regards
Sandra
Team Spybot
 
Back
Top