/build/static/layout/Breadcrumb_cap_w.png

Active Setup configuration

I have been trying to get the Active Setup without any success. I am attempting to deploy "Jasc Paint Shop Pro 8" silently and add some registry keys to bypass the registration and the file association setup during the first run for any user on that machine. "Jasc Paint Shop Pro 8" comes with msi package which is not a problem. My issue is to applying the following keys using Active Setup during the first run:

[HKEY_CURRENT_USER\Software\Jasc\Animation Shop 3\General]
"EregAttempted"=dword:00000001
"Version"=dword:03010004

[HKEY_CURRENT_USER\Software\Jasc\Animation Shop 3\Settings]
@=""
"Language"=dword:00000006
[HKEY_CURRENT_USER\Software\Jasc\Paint Shop Pro 8\General]
"EULA"=dword:00000001
"Language"="IEnglish"
"SelectScript"="Art"
"ERegAttempted"=dword:00000001
"RunOnce"=dword:00000001

Does anyone have any clue how I could achieve it?

With ORCA, I am able to found out from the Property table:
ARPCOMMENTS = Jasc Software Inc Paint Shop Pro 8
ProductCode = {81A34902-9D0B-4920-A25C-4CDC5D14B328}
ProductName = Jasc Paint Shop Pro 8

By the way is the ProductName = %APPNAME%?

Thanks in advance.

Antonio

0 Comments   [ + ] Show comments

Answers (7)

Posted by: MsiCreator 15 years ago
Senior Yellow Belt
0
Hi you can add active setup key in application as
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\[ProductCode]
"StubPath"="msiexec /fu [ProductCode] /qb"
"Version"=[ProductVersion]
""=[ProductName]
which apply all user specific registries.
Posted by: lam2070 15 years ago
Senior Yellow Belt
0
Hi MsiCreator,

Thanks for the quick response. However I still don't understand how it work, this is the first time I am trying to make use of Active Setup.

The question is, by using "msiexec /fu [ProductCode] /qb, how does it know what registries need to be applied?

This is how things happen:
- Install Paint Shop Pro 8 as an Administrator
- Import the registry keys using reg file
- Start PSP8 and it won't asks me for registration and file association
- Logoff and login as studen
- Start PSP8 and it asks

My goal is to bypass the registration and file association and make the program jumps to the main in the first run. Since the registry keys were imported or created under Administrator, the system does not know where to grab the corresponding keys and apply to others. Am I right?

Regards,
Antonio
Posted by: pjgeutjens 15 years ago
Red Belt
0
Here's what happens:

1) You put the registry keys mentioned before in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\[ProductCode]
2) user logs in and doesn't have an entry in the registry under HKEY_CURRENT_USER\SOFTWARE\Microsoft\Active Setup\Installed Components\[ProductCode]
3) Windows will copy the keys in HKLM to HKCU, and it will execute the commandline that is the value of StubPath

Now, if this command is msiexec.exe /fu <productcode> /qb this means
-f : trigger a repair of the msi
-u: Rewrite all required user-specific registry entries
/qb minimal UI, might want to go for /qn here

So Windows Installer will rewrite all components that contain registry keys in HKCU, including the components that contain your reg settings so these registry keys have to be in a component in your msi

You can also write a vbs, or a batch file or anything else that writes the registry keys in HKCU, and trigger this in the StubPath value of your ActiveSetup keys. If you were to import a reg file for example your StubPath command could be something like regedit /S \\FILEServer\Install\batch\usersettings.reg

So basically Windows "knows" which keys to write because you either put them in your msi, or you copy them from a reg file, or write them in some other way
Posted by: lam2070 15 years ago
Senior Yellow Belt
0
Hi pjeutjens,

Thanks to you too. You mentioned "1. You put the registry keys mentioned before in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\[ProductCode]". Does it mean all I need to write is:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\[ProductCode]
"EULA"=dword:00000001
"Language"="IEnglish"
"SelectScript"="Art"
"ERegAttempted"=dword:00000001
"RunOnce"=dword:00000001

And Active Setup will automatically put these registries in the right place.

I tried StubPath = C:\Temp\PSP8.reg, and it does not work. If I double click the reg file before the first run, it won't ask me anything. If I use my Active Setup, it prompted me as if no registry is update. And in fact, a look into the registry proved me nothing has been written to the HKCU. So another question is where do you normally find the [ProductCode], I am thinking if I use the wrong one, so it did not work.

Thanks in advance.
Posted by: captain_planet 15 years ago
Black Belt
0
Doesn't Paint Shop Pro use an advertised shortcut on the Start Menu? Why not just create a CurrentUser component, import your current user registry settings above and set one of them as a keypath? Then when you click your advertised shortcut the component/HKCU registry will be written on launch?

ActiveSetup is used when there are no advertised entry points (like an advertised shortcut) and hence requires the user to log off and on again.....
Posted by: captain_planet 15 years ago
Black Belt
0
....and this isn't a scripting question so it might get shifted by a mod....
Posted by: gnsv 12 years ago
Yellow Belt
0
[hr][hr]
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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