/build/static/layout/Breadcrumb_cap_w.png

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"

0 Comments   [ + ] Show comments

Answers (9)

Posted by: 786_ak 9 years ago
Third Degree Green Belt
1
Agreed with spartacus and mmudre.

msiexec /fu [ProductCode] /qn

Posted by: anonymous_9363 15 years ago
Red Belt
0
"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
Black Belt
0
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
Orange Belt
0
hi VBScab

which space r u talking about. ?
Posted by: SKS 15 years ago
Orange Belt
0
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
Posted by: anonymous_9363 15 years ago
Red Belt
0
ORIGINAL: SKS

hi VBScab

which space r u talking about. ?
That would be the one between "C:\Program" and "Files"....

Run the command as you have it in your .REG from a command prompt and it will error.
Posted by: spartacus 15 years ago
Black Belt
0
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
Red Belt
0
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
Senior White Belt
0
The best way would be to add these registry settings in the registry table using MST and adding active setup with StubPath as follows:

msiexec /fu [ProductCode] /qb
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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