/build/static/layout/Breadcrumb_cap_w.png

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:


0 Comments   [ + ] Show comments

Answers (3)

Posted by: SMal.tmcc 5 years ago
Red Belt
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.

Posted by: anonymous_9363 5 years ago
Red Belt
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.

Posted by: Astorian 4 years ago
White Belt
0

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. 

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ