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
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.
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.
Please log in to answer
Posted by:
Arminius
12 years ago
Posted by:
kardock
12 years ago
try StubPath without quotes
StubPath="C:\\path to\\batchfile.bat"
StubPath="C:\\path to\\batchfile.bat"
Comments:
-
No luck there either. - 786_ak 12 years ago
Posted by:
jmaclaurin
12 years ago
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"
[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
Posted by:
786_ak
12 years ago
Posted by:
786_ak
12 years ago
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
Posted by:
andys0123
12 years ago
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.
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