ActiveSetup dont work in MST
Hi all
I am trying to make a active setup, but i doesnt work. i can see that the file is in filesystem and also in the registry, but i doesnt work. Can anyone help me out. Thnx.
## This is importet within the MST ##
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\HKLMCrystalReportSimcorp]
@="CrystalReportSimcorp"
"ComponentID"="CrystalReportSimcorp"
"IsInstalled"=dword:00000001
"Locale"="*"
"Version"="1"
"StubPath"="REGEDIT.EXE /s C:\Program Files\data\Crystal.reg"
## This registry named " crystal.reg is located at C:\Program Files\data\Crystal.reg ##
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Business Objects\Suite 11.0\Crystal Reports\CheckForUpdates]
"DisableOnStartUp"=dword:00000001
[HKEY_CURRENT_USER\Software\Business Objects\Suite 11.0\Crystal Reports\StartPage]
"Show Online Resources"="No"
I am trying to make a active setup, but i doesnt work. i can see that the file is in filesystem and also in the registry, but i doesnt work. Can anyone help me out. Thnx.
## This is importet within the MST ##
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\HKLMCrystalReportSimcorp]
@="CrystalReportSimcorp"
"ComponentID"="CrystalReportSimcorp"
"IsInstalled"=dword:00000001
"Locale"="*"
"Version"="1"
"StubPath"="REGEDIT.EXE /s C:\Program Files\data\Crystal.reg"
## This registry named " crystal.reg is located at C:\Program Files\data\Crystal.reg ##
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Business Objects\Suite 11.0\Crystal Reports\CheckForUpdates]
"DisableOnStartUp"=dword:00000001
[HKEY_CURRENT_USER\Software\Business Objects\Suite 11.0\Crystal Reports\StartPage]
"Show Online Resources"="No"
0 Comments
[ + ] Show comments
Answers (9)
Please log in to answer
Posted by:
anonymous_9363
15 years ago
"StubPath"="REGEDIT.EXE /s C:\Program Files\data\Crystal.reg"The path has a space in it and must thus be enclosed in quotes. As it is, RegEdit is trying to import a file called 'C:\Program'.
Try
"StubPath"="REGEDIT.EXE /s "C:\Program Files\data\Crystal.reg""
Comments:
-
"StubPath"=REGEDIT.EXE /s "C:\Program Files\data\Crystal.reg"
You placed your (") incorrectly. - GregB 9 years ago
Posted by:
spartacus
15 years ago
ORIGINAL: SKS
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\HKLMCrystalReportSimcorp]
@="CrystalReportSimcorp"
"ComponentID"="CrystalReportSimcorp"
"IsInstalled"=dword:00000001
"Locale"="*"
"Version"="1"
"StubPath"="REGEDIT.EXE /s C:\Program Files\data\Crystal.reg"
## This registry named " crystal.reg is located at C:\Program Files\data\Crystal.reg ##
Just curious, but why do you need to run regedit as part of the Active Setup ?
A more conventional approach would surely be to introduce these registry keys/values into a component, set one of the values as a keypath and then the StubPath could be set to something like
msiexec /fup [ProductCode] /qn
... or am I missing something (.... like caffeine).
Regards,
Spartacus
Posted by:
SKS
15 years ago
hi spartacus
the reason why i want to run a active setup is , when ever a new user log in, it have to get these setting :
[HKEY_CURRENT_USER\Software\Business Objects\Suite 11.0\Crystal Reports\CheckForUpdates]
"DisableOnStartUp"=dword:00000001
[HKEY_CURRENT_USER\Software\Business Objects\Suite 11.0\Crystal Reports\StartPage]
"Show Online Resources"="No"
and therefor i want to make a active setup.
If you have a better and easier way , i would like to hear it. thnx
/sks
the reason why i want to run a active setup is , when ever a new user log in, it have to get these setting :
[HKEY_CURRENT_USER\Software\Business Objects\Suite 11.0\Crystal Reports\CheckForUpdates]
"DisableOnStartUp"=dword:00000001
[HKEY_CURRENT_USER\Software\Business Objects\Suite 11.0\Crystal Reports\StartPage]
"Show Online Resources"="No"
and therefor i want to make a active setup.
If you have a better and easier way , i would like to hear it. thnx
/sks
Posted by:
anonymous_9363
15 years ago
Posted by:
spartacus
15 years ago
ORIGINAL: SKS
hi spartacus
the reason why i want to run a active setup is , when ever a new user log in, it have to get these setting :
[HKEY_CURRENT_USER\Software\Business Objects\Suite 11.0\Crystal Reports\CheckForUpdates]
"DisableOnStartUp"=dword:00000001
[HKEY_CURRENT_USER\Software\Business Objects\Suite 11.0\Crystal Reports\StartPage]
"Show Online Resources"="No"
and therefor i want to make a active setup.
If you have a better and easier way , i would like to hear it. thnx
/sks
The method I described is a more conventional approach IMHO. The command
msiexec /fup [ProductCode] /qn
(when used in the Active Setup stubpath) will run for each user the first time they log on after the product is installed.
It will cause (among other things) a repair of any missing HKCU registry entries.
So if you include the HKCU registry entries you mentioned earlier into your package then initially only the installing user will have these in their HKCU registry.
When msiexec/fup runs at the next logon for each additional user, it will "notice" that these are missing for the currently logged on user, and repair them by writing them to HKCU. This occurs only once, which is the desired behaviour.
Regards,
Spartacus
Posted by:
EdT
9 years ago
It is always safest to give full paths to all executables and also ensure correct use of double quotes.
"Stubpath"="c:\windows\system32\regedit.exe" /s "c:\program files\data\crystal.reg"
You need to make sure that the equivalent entry in HKCU is deleted after each test otherwise the next test will not work.
Posted by:
mmudre@yahoo.com
9 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.