Help with a .Bat File
Hello Guys,
I am deploying a .Bat file to install - Toad and bunch of registry keys for Toad license.
The .bat file when run locally only add the registry keys, but when deployed using SCCM - it only installs the application - won't add the registry keys.
msiexec.exe /i "ToadForOracle_13.1.1.5_x86_En.msi" INSTALLDIR="C:\Toad\" /q reg add "HKCU\SOFTWARE\{08439167-4CA5-48E9-A810-A3A7C0B80B06}" /f reg add "HKCU\Software\{08439167-4CA5-48E9-A810-A3A7C0B80B06}\Local" /f reg add "HKCU\Software\{08439167-4CA5-48E9-A810-A3A7C0B80B06}\Local\EGRS8BGAZ14L" /f reg add "HKCU\Software\{08439167-4CA5-48E9-A810-A3A7C0B80B06}\Local\EGRS8BGAZ14L" /v SiteMessage /t REG_SZ /d "XX CORP" /f reg add "HKCU\Software\{08439167-4CA5-48E9-A810-A3A7C0B80B06}\Local\EGRS8BGAZ14L" /v ProductName /t REG_SZ /d "Toad for Oracle" /f reg add "HKCU\Software\{08439167-4CA5-48E9-A810-A3A7C0B80B06}\Local\EGRS8BGAZ14L" /v ProductVersion /t REG_SZ /d 13.1.1 /f
Can you please look at the below .bat file and let me know where i am going wrong:
Answers (3)
Like pretty much every deployment system, SCCM uses the System account to do its work. To get user-based settings installed, you'll need to rejig the feature tree so that the applications gets self-healed when the advertised entry-point - normally a shortcut - is used.
Google for John McFadyen's excellent article about self-healing. Alternatively, the basics are mentioned here at IT Ninja many times.
Hello, you could make two Applications.
App A - with Installation behavior - Install for system, for deploying the MSI installation.
App B - with Installation behavior - Install for User that deploys the reg keys. That way the logged on user registry will be used.
Add App A as dependency in App B with Auto install enabled.
This helped me to deploy apps with user settings where the user does not have install rights.