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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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""
Answered 06/18/2008 by: VBScab
Red Belt

  • "StubPath"=REGEDIT.EXE /s "C:\Program Files\data\Crystal.reg"
    You placed your (") incorrectly.
Please log in to comment
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
Answered 06/18/2008 by: spartacus
Black Belt

Please log in to comment
0
hi VBScab

which space r u talking about. ?
Answered 06/18/2008 by: SKS
Orange Belt

Please log in to comment
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
Answered 06/18/2008 by: SKS
Orange Belt

Please log in to comment
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.
Answered 06/18/2008 by: VBScab
Red Belt

Please log in to comment
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
Answered 06/18/2008 by: spartacus
Black Belt

Please log in to comment
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.
Answered 08/11/2014 by: EdT
Red Belt

Please log in to comment
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
Answered 08/19/2014 by: mmudre@yahoo.com
Senior White Belt

Please log in to comment
1
Agreed with spartacus and mmudre.

msiexec /fu [ProductCode] /qn

Answered 08/19/2014 by: 786_ak
Second Degree Green Belt

Please log in to comment
Answer this question or Comment on this question for clarity