/build/static/layout/Breadcrumb_cap_w.png

Active Setup not working

Hello All,

I have created an active setup key:


[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Active Setup\Installed Components\APPNAME]
"StubPath"="C:\\path to\\batchfile.bat"
Problem is, it's not working. This never kicks the batch file. I launched the batch file manually and it works fine. I have even changed the location to:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\APPNAME]

but no luck. Any thoughts? Anybody?

Thanks
AK

0 Comments   [ + ] Show comments

Answers (8)

Answer Summary:
Thanks for you feedback. Issue was the folder which was not in place for active setup to actually copy files into. So I had to modify the active setup to first create the folder and then copy the file to it. Once again thanks.
Posted by: Arminius 12 years ago
Second Degree Green Belt
5
There are 2 things that are needed in the HKLM keys: stub path and version. Also jmaclaurin makes an excellent point: check your hkcu and make sure it hasn't already run or irrespective of what you do, if your hkcu version matches or exceeds the hlkm version #, it won't run.
Posted by: kardock 12 years ago
Second Degree Green Belt
2
try StubPath without quotes

StubPath="C:\\path to\\batchfile.bat"

Comments:
  • No luck there either. - 786_ak 12 years ago
Posted by: jmaclaurin 12 years ago
Third Degree Blue Belt
2
This works for me.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\[ProductCode]]
@="[ProductName] [ProductVersion] changes for the current user"
"Locale"="*"
"StubPath"="pathtoexecutable"
"Version"="1"

Comments:
  • I create this as a reg file and import it into the MSI/MST.

    Also, check in HKCU and be sure that it already hasn't run. - jmaclaurin 12 years ago
  • could be the double \. my activesetup do not have any double \ - kardock 12 years ago
Posted by: piyushnasa 12 years ago
Red Belt
2
check if it has already run on that machine. If it is run once, it will not run again. Either change version number or appname/productcode.
Posted by: 786_ak 12 years ago
Third Degree Green Belt
1
Hello All,

Thank you so much for all the feedback on this, the issue has been resolved. I came to find out that, the folder that the active setup was creating file in was not in place. So I had to modify the active setup so it creates that folder and then place the file in there.

Thanks a bunch.

AK
Posted by: 786_ak 12 years ago
Third Degree Green Belt
1
All in place, but not working......

Comments:
  • It could be how its set up to lay down. Is the active setup set to run before your MSI,or after? It might just be bad placement for active setup. I know it sucks to do this but have you tried to remove the whole active setup from the install and redo the whole process it could be something was missed. Just a thought. - Zinder10 12 years ago
Posted by: 786_ak 12 years ago
Third Degree Green Belt
1
Hello All,

Thanks for you feedback. Issue was the folder which was not in place for active setup to actually copy files into. So I had to modify the active setup to first create the folder and then copy the file to it. Once again thanks.

AK
Posted by: andys0123 12 years ago
Orange Senior Belt
1
Just as a test, copy the following to a file ‘test.reg’ & import it:



Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Active Setup\Installed Components\Notepad]
"StubPath"="C:\\Windows\\SysWOW64\\notepad.exe"
"Version"="1.0.0"



When you log in again, Notepad should run. This will show if Active Setup is working properly on your machine.

Comments:
  • Just a minor point and I am not for one minute suggesting this will fix the issue, but you should be using commas rather than periods as delimeters in the version number - spartacus 12 years ago
 
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