Jump to content


funkedup

Add HKLM keys via installation script

Recommended Posts

I have a software installation script which I am pushing out as a SCCM application. When I run the script manually on the computer the registry keys are added with no problems. When I run the application through SCCM, the software installs but the registry keys do not.

 

What am I doing wrong?

 

The application calls install.bat which consists of:

 

@echo off
Title Installing ChemOffice 15
@echo Installing ChemOffice 15
@echo.
@echo Please do not close this window as it will close automatically
@echo once the installation has completed.
CambridgeSoft_ChemOffice_Professional_2015.msi /qb!
CambridgeSoft_ChemDraw_ActiveX_Enterprise_Constant_15.0.msi /qb!
reg import license.reg
cacls "C:\Program Files\CambridgeSoft\ChemOffice2015" /e /g "users":f
cacls "C:\Program Files (x86)\CambridgeSoft\ChemOffice2015" /e /g "users":f
rem exit 0

 

 

Share this post


Link to post
Share on other sites

Contents of license.reg:

 

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\CambridgeSoft\ChemBioOffice\15.0\Ultra]
"Launch Count"=dword:00000014
"User Name"="User"
"Organization"="Institute"
"Serial Number"="xxx-xxxxx-xxx"
"Email"=""
"Activation Code"="xxx-xxxxx-xxx"
"Success"=hex:01
"License"="Licensed to The Institute"
"Warning"="CambridgeSoft Proprietary data: Do not redistribute outside of licensed customer site."

 

I will try the psexec route, I just stumbled across an article about that yesterday.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.