I have a certain package which is a vendor msi.Therefore I have created a mst where I have done all the modifications.
After installing the package using /qb from the command line when I try to launch the package the package asks for the serial number.
Solution or Workaround for the above issue: I put in the Serial number when it asked for one.Exported the Registry key from the computer and imported the same Registry key into my package using Wise package studio.

Now if I try installing the package using /qb from the command line it does not ask for the Serial number when the package is launched.

However when I try using the /ju swtich to advertise it from the command line and when I go to Start > All programs > and click on the package to start installing it. This time when I launch the package it again asks for the Serial number.

Why is the advertisement causing issues.....what could be teh possible reason and workaround

The package is called Grapher in case that information helps
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 Guys..really could do with some help on this one......thanx :-)
Answered 03/23/2009 by: TP24667
Senior Yellow Belt

Please log in to comment
0
Did you verify that the "serial" registry was written during install?
Answered 03/23/2009 by: AngelD
Red Belt

Please log in to comment
0
Hi..thanx for replying....am not quite sure what you are referring to when you say

"Did you verify that the "serial" registry was written during install? "
Answered 03/23/2009 by: TP24667
Senior Yellow Belt

Please log in to comment
0
Check the registry which you have added for the serial number does get installed after the package is installed?
Answered 03/23/2009 by: India_Repackaging
Blue Belt

Please log in to comment
0
LOL...expecting a response in 12 minutes is pushing it a bit, don't you think?

Have a look here at the '/J' switch options http://msdn.microsoft.com/en-us/library/aa367988(VS.85).aspx
Answered 03/23/2009 by: VBScab
Red Belt

Please log in to comment
0
What happens if you manually (double-click) install the MSI, do you not get prompted to enter the serial during installation?
These serial numbers can often be pre-populated using a property.
Answered 03/23/2009 by: AngelD
Red Belt

Please log in to comment
0
Solution or Workaround for the above issue: I put in the Serial number when it asked for one.Exported the Registry key from the computer and imported the same Registry key into my package using Wise package studio.

Using the above Workaround If I manually click and install the MSI it does not prompt the Serial number after launching the Program Grapher.

It does not work when I try to advertise it using the /ju switch which the requirment in the client environment.

If the below 2 Registry keys get written to the registry during installation of Grapher then the "serial number does not pop up" when the program is launched:

[HKEY_LOCAL_MACHINE\SOFTWARE\Golden Software\Grapher\7.0]
"Imported"=dword:00000001
"ImportGUID"="{940AF2D-3229-1966-5U53-47435043P57E}"

Summarizing ...........My question is:

When installing manually ( clicking on msi) or even through command line using /qb the above 2 registry keys get written to the registry on the machine and the serial number does not pop up.

When installing using the /ju command and trying to advertise the application the above 2 registry keys ( included in the package as per my solution or workaround) does not get written to the registry on the machine and the serial number pops up

Something while using the /ju switch is preventing the registry being written to...am trying to find that out
Answered 03/23/2009 by: TP24667
Senior Yellow Belt

Please log in to comment
0
Where did you add your reg keys. Was it into an existing component? if it wasn't did you add the component to an existing feature or one that you created.
Some vendor installs don't support advertising and if the key you've added is in a different feature to the advertised shourtcut then it may not get installed.
This depends on the feature structure of the msi.
Answered 03/23/2009 by: timmsie
Fourth Degree Brown Belt

Please log in to comment
0
Did you read the article in the link I posted? In a triumph of consistency (the ultimate oxymoron - Microsoft and consistency...), the TRANSFORMS property is ignored when advertising. You need to use the '/t' switch to apply a transform to the advertised package.
Answered 03/23/2009 by: VBScab
Red Belt

Please log in to comment
0
In reply to timmsie's query.....

I added the Registry keys under the Registry section under Installation Expert Using Wise Package Studio.
Should I have added it here or somewhere else?

Timmsie I am not sure what you meant when you said:
"Was it into an existing component? if it wasn't did you add the component to an existing feature or one that you created. Some vendor installs don't support advertising and if the key you've added is in a different feature to the advertised shourtcut then it may not get installed. "
I think if I undersatnd the concept what you said here I might move closer towards resolving the issue.

------------------------------------------------------------------------------------------------------------

In reply to Ian's query....

I did go through the article and tried the installation using the command line given ( with /t switch as you have recommended) below but the serial number still pops up:

C:\>msiexec /ju "Path to the msi" t="Path to the mst" /t
------------------------------------------------------------------------------------------------------------

I also tried incorporating a VB script ( given below) under Custom Actions/ Execute Immediate so that the keys get written to the registry of the computer before the aplication is launched but somehow the VB Script fails to trigger:
The VB script that I have used is given below:
----------------------------------------------------------------------------------

const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."

Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Golden Software\Grapher\7.0"
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath

strKeyPath = "SOFTWARE\Golden Software\Grapher\7.0"
strValueName = ""
strValue = ""
oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue

strValueName = "Imported"
dwValue = 1
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue
strValueName = "ImportGUID"
strValue = "{940AF2D-3229-1966-5U53-47435043P57E}"
oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue

-----------------------------------------------------------------------------------------------------------------

I have put the above VBscript under Msi script Custom Action / Execute Immediate after Install Finalize using the below criteria
If Not Installed then
| Call VBScipt From Installation(Action)
End

----------------------------------------------------------------------------------------------------------------

But the above VBscript put in the mst does not trigger/or work no matter in which sequence I place it in....
Answered 03/24/2009 by: TP24667
Senior Yellow Belt

Please log in to comment
0
C:\>msiexec /ju "Path to the msi" t="Path to the mst" /t

should be C:\msiexec /ju "Path to the msi" /t "Path to the mst"

Read the "Self healing" Blog here

http://johnmcfadyen.spaces.live.com/?_c11_BlogPart_BlogPart=blogview&_c=BlogPart&partqs=amonth%3d3%26ayear%3d2008

it will give you a better understanding of the structure of msi's
Answered 03/24/2009 by: timmsie
Fourth Degree Brown Belt

Please log in to comment
0
Solved !!! Thanx a ton..it works like a charm!!

C:\msiexec /ju "Path to the msi" /t "Path to the mst"


I don't even require the VBScript

Thanx again Timmsie and Ian ........

I just wanted to know one last thing Timmsie...when you said

"Was it into an existing component? if it wasn't did you add the component to an existing feature or one that you created. Some vendor installs don't support advertising and if the key you've added is in a different feature to the advertised shourtcut then it may not get installed. "

Is there another method in solving this issue also.....
Answered 03/24/2009 by: TP24667
Senior Yellow Belt

Please log in to comment
0
read this:

http://msdn.microsoft.com/en-us/library/aa368003(VS.85).aspx

and the blog I put a link to in the previous post. Hopefully it will aid your understanding.

If using wise you click on the "setup editor" tab and the "Feature" tab you'll see the structure of the msi your working on
Answered 03/24/2009 by: timmsie
Fourth Degree Brown Belt

Please log in to comment
0
Hi ,

There seems to be another issue.When I install using the command line as you suggested:
C:\msiexec /ju "Path to the msi" /t "Path to the mst" it advertises fine and launches fine however not all files are copied to under C:\Program Files\Golden Software\Grapher which amount to
115 files 0 folders

However when I install using the command line without using advertising as shown below:
C:\msiexec /i "Path to the msi" /t "Path to the mst" /qb
All files are copied to under C:\Program Files\Golden Software\Grapher which amount to
60.5 MB 278 files 5 folders

Why would this be happening...
Answered 03/31/2009 by: TP24667
Senior Yellow Belt

Please log in to comment
0
probably because of the feature structure of the msi and where the shortcuts are located. That's why I attached the links in previous posts to help you understand this.
Answered 03/31/2009 by: timmsie
Fourth Degree Brown Belt

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