/build/static/layout/Breadcrumb_cap_w.png
10/16/2019 195 views

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:

0 Comments   [ + ] Show comments

Comments



Community Chosen Answer

1

first guess is the user does not have rights to run msi install and SCCM runs as system so there are no hkcu keys created.

Answered 10/17/2019 by: SMal.tmcc
Red Belt

All Answers

0

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.

Answered 10/21/2019 by: VBScab
Red Belt