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

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
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.
Answered 08/06/2009 by: MsiCreator
Senior Yellow Belt

Please log in to comment
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
Answered 08/06/2009 by: lam2070
Senior Yellow Belt

Please log in to comment
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
Answered 08/06/2009 by: pjgeutjens
Red Belt

Please log in to comment
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.
Answered 08/07/2009 by: lam2070
Senior Yellow Belt

Please log in to comment
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.....
Answered 08/10/2009 by: captain_planet
Second Degree Brown Belt

Please log in to comment
0
....and this isn't a scripting question so it might get shifted by a mod....
Answered 08/10/2009 by: captain_planet
Second Degree Brown Belt

Please log in to comment
0
[hr][hr]
Answered 03/02/2012 by: gnsv
Yellow Belt

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