funkedup Posted November 6, 2015 Report post Posted November 6, 2015 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 offTitle 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.regcacls "C:\Program Files\CambridgeSoft\ChemOffice2015" /e /g "users":fcacls "C:\Program Files (x86)\CambridgeSoft\ChemOffice2015" /e /g "users":frem exit 0 Quote Share this post Link to post Share on other sites More sharing options...
GarthMJ Posted November 7, 2015 Report post Posted November 7, 2015 What are the reg key for this? what error are you getting? Have you tested this batchfile using PSEXEC? Quote Share this post Link to post Share on other sites More sharing options...
spgsitsupport Posted November 8, 2015 Report post Posted November 8, 2015 Sadly batch files are the only way to do it, as it is one of many CM shortfalls (proper registry management, with visual selection - something that would just work, without possibility of an error) Quote Share this post Link to post Share on other sites More sharing options...
GarthMJ Posted November 8, 2015 Report post Posted November 8, 2015 Sadly, you didn't answer any of my questions and therefore no one can help you. Quote Share this post Link to post Share on other sites More sharing options...
spgsitsupport Posted November 8, 2015 Report post Posted November 8, 2015 Give him a chance Garth... Quote Share this post Link to post Share on other sites More sharing options...
funkedup Posted November 9, 2015 Report post Posted November 9, 2015 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. Quote Share this post Link to post Share on other sites More sharing options...
funkedup Posted November 9, 2015 Report post Posted November 9, 2015 When I test the .bat file using psexec I do not receive any error message but the registry keys are not added. Quote Share this post Link to post Share on other sites More sharing options...
GarthMJ Posted November 9, 2015 Report post Posted November 9, 2015 Is if the Reg keys are NOT added when you execute the batch file via PSExec then you need to fix that before looking at CM12. Quote Share this post Link to post Share on other sites More sharing options...
Lagamorph Posted November 9, 2015 Report post Posted November 9, 2015 Have you tried changing "reg import license.reg" to "regedit.exe /s license.reg" ? (Don't forget to update your Distribution point after modifying the batch file) 1 Quote Share this post Link to post Share on other sites More sharing options...
spgsitsupport Posted November 21, 2015 Report post Posted November 21, 2015 Pause the TS before & after, check what happens. While in there you can re-run these same commands by hand. You will find out what is "happening" or not Quote Share this post Link to post Share on other sites More sharing options...