Transform to supress prompt for serial number
Hi,
I have a vendor supplied msi created in InstallShield. I need to deploy the app silently, but upon install, it prompts for a serial number. As far as I'm aware an MST should be able to input the serial number, is that right?
I tried creating an MST with MaSaI, I wasn't really sure what to look for, but thought the DiskSerial property would be what I needed, but it didn't work.
Is there a set property for serial/product numbers, or would it just have been specified by the creator of the MSI?
thanks
I have a vendor supplied msi created in InstallShield. I need to deploy the app silently, but upon install, it prompts for a serial number. As far as I'm aware an MST should be able to input the serial number, is that right?
I tried creating an MST with MaSaI, I wasn't really sure what to look for, but thought the DiskSerial property would be what I needed, but it didn't work.
Is there a set property for serial/product numbers, or would it just have been specified by the creator of the MSI?
thanks
0 Comments
[ + ] Show comments
Answers (12)
Please log in to answer
Posted by:
photozz
20 years ago
Might be a long shot, but you could install the app, then search the registry for the serial number. This would tell you what keys you need to import during setup.
When you create the transform, there is prob a property listing the serial #. Setting this property in the script should quiet the dialog down. What's the app?
When you create the transform, there is prob a property listing the serial #. Setting this property in the script should quiet the dialog down. What's the app?
Posted by:
meastaugh1
20 years ago
Posted by:
bkelly
20 years ago
Have a look in the MST you create and make sure it is getting in there. Are the other settings you choose being applied by the MST? If you are doing this from the command line, one common mistake is to specify TRANSFORM=<mytrasform.mst> instead of TRANSFORMS=<mytransform.mst> (make sure it is plural).
The Transform "should" be able to handle entering the serial information for you (as it is designed to do), but the MSI could be authored to collect the serial number outside of a standard dialog, such as with a custom action or form designed specifically not to capture this information. Take a look at the MSI itself and see if you can determine if anything strange is happening here.
Good luck!
Bob
The Transform "should" be able to handle entering the serial information for you (as it is designed to do), but the MSI could be authored to collect the serial number outside of a standard dialog, such as with a custom action or form designed specifically not to capture this information. Take a look at the MSI itself and see if you can determine if anything strange is happening here.
Good luck!
Bob
Posted by:
MSIMaker
20 years ago
Posted by:
meastaugh1
20 years ago
Thanks for that Jim, it's now inserting the serial number automatically during setup when I run it with the transform... however I've now run into another problem...
If I run the setup with a basic end (ie where it runs through setup, automatically showing progress), it seems to install fine but upon running the program it says it's not installed properly.
If I set it to show a full end when installing (where I have to press next to progress) it's defaulting to the correct answers (ie yes to the EULA, serial number entered, typical installation, default installation target folder). I don't make any changes and after clicking next and finish a few times, I try to run it and it works fine.
Could someone suggest a setting in the transform I need to set, that possibly haven't? I need the installation to be totally silent.
thanks for your help
If I run the setup with a basic end (ie where it runs through setup, automatically showing progress), it seems to install fine but upon running the program it says it's not installed properly.
If I set it to show a full end when installing (where I have to press next to progress) it's defaulting to the correct answers (ie yes to the EULA, serial number entered, typical installation, default installation target folder). I don't make any changes and after clicking next and finish a few times, I try to run it and it works fine.
Could someone suggest a setting in the transform I need to set, that possibly haven't? I need the installation to be totally silent.
thanks for your help
Posted by:
babydor
20 years ago
I had a similar problem with a program. With the serial in the transform, it would install but would act like an invalid serial was entered.
I tried passing the serial via the command line and, oddly enough, it installed and worked properly. The Wise script looked like the following, with all the %VARIABLES% defined accordingly.
item: Execute Program
Pathname=%SYS32%\msiexec.exe
Command Line=/i "%SOURCE%\%MSI%" ISX_SERIALNUMBER=%SERIAL%
TRANSFORMS="%SOURCE%\%MST%" /qb!
Flags=00000010
end
It probably won't help, but I find trying anything once is always worthwhile when you have a stubborn package.
-Eric
I tried passing the serial via the command line and, oddly enough, it installed and worked properly. The Wise script looked like the following, with all the %VARIABLES% defined accordingly.
item: Execute Program
Pathname=%SYS32%\msiexec.exe
Command Line=/i "%SOURCE%\%MSI%" ISX_SERIALNUMBER=%SERIAL%
TRANSFORMS="%SOURCE%\%MST%" /qb!
Flags=00000010
end
It probably won't help, but I find trying anything once is always worthwhile when you have a stubborn package.
-Eric
Posted by:
meastaugh1
20 years ago
Posted by:
meastaugh1
20 years ago
Right ok, I think I've finally got it to install ok, by passing the serialnum directly through the command line as Eric suggested. To get it to autoaccept the license I've had to use an MST to do that so far. Is there an installshield switch for that as well? I've ACCEPTLICENSE=YES AGREETOLICENSE=YES ACCEPTEULA=1, any suggestions?
thanks
thanks
Posted by:
babydor
20 years ago
You should be able to alter the command line to look like this:
%SYS32%\msiexec.exe /i "%SOURCE%\%MSI%" ACCEPTEULA=1 ISX_SERIALNUMBER=%SERIAL% TRANSFORMS="%SOURCE%\%MST%" /qb!
but, like anything else, some packages it will work for, some it won't.
glad passing the serial did the trick for you though.
-Eric
%SYS32%\msiexec.exe /i "%SOURCE%\%MSI%" ACCEPTEULA=1 ISX_SERIALNUMBER=%SERIAL% TRANSFORMS="%SOURCE%\%MST%" /qb!
but, like anything else, some packages it will work for, some it won't.
glad passing the serial did the trick for you though.
-Eric
Posted by:
meastaugh1
20 years ago
Looks like I spoke too soon, it worked once, then won't work subsequently, and I can't see anything that's changed.
I'm trying to avoid using the MST, as I don't have any confidence that the transform's working.
Is there an installshield specific switch for accepting the license agreement? When I try to use accepteula=1 it doesn't work. Any suggestions appreciated.
This app is much more awkward than I first thought.
I'm trying to avoid using the MST, as I don't have any confidence that the transform's working.
Is there an installshield specific switch for accepting the license agreement? When I try to use accepteula=1 it doesn't work. Any suggestions appreciated.
This app is much more awkward than I first thought.
Posted by:
meastaugh1
20 years ago
Just thought I'd let you all know that I've got this prob fixed. It seemed to be that when running the MSI silently, it skipped the serial number bit altogether. The important bit was that the serial number prompt affected whether a vital registry fragment was inserted (without which the program would not run). So to workaround I used an MST to add the registry fragment in manually. Thanks all for your advice.
Posted by:
omookin
20 years ago
I have a similar question...i'm packaging with adminstudio and the application (intex trader) doesnt ask for the key till when you open to actually use it.While doing the packaging i put that in my 2nd snapshot, but when i open the packaged product it shows the the license key in clear text,how can I encrypt this?[&o]
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.