
jhworden1.5524899874862139E12 asked a question.
Setting up a Custon Action in Tuner
I'm trying to package MicroSoft MapPoint 2004 for distribution within my company. Since it is already an MSI, I am using Tuner to create an MST to go with it. Among other things, I don't want the EULA dialogs to come out. If I add the EULA value to the registry in the MST, the Installer does NOT install it. So I wrote a VBS Custom Action to add the registry entry at the end of the Install.
Since there is virtually no Custom Action support in Tuner, I am using the Direct Editor. I have found three tables which must have an entry -- Binary, CustomAction, and InstallExecuteSequence. I think the Binary table is what is causing the problem. I use the dialog to "import" my VBS source into the Binary table (Left click on {binary data}). I don't believe it is actually storing the VBS code. The VBS code has a couple of MsgBox messages which never come out in test installs. In addition, if I try to "export" the binary data, I get an error message -- "Error in writing File"! Very helpfull! :mad:
Anybody out there have any ideas for getting this to work?
Thanks,
Jim
I tested your behavior and I get the same message box when trying to write the binary data to a file. It also occurs if you were to edit the transform via DevStudio or even the MSI in direct edit mode via DevStudio. The only case it seems to work is when editing the .ism file (which doesn't help you). I submitted it to our development team under WO 1-LNVRT as a potential bug. I'll give you more status on this as it is presented to me.
In the meantime, as a possible workaround if it is a short script, you can put the vbscript directly into the custom action (<255 characters due to the CustomAction table limitations). To do this, create a new entry in the CustomAction table with the following columns:
Action: NewCA
Type: 38
Source:
Target: Enter your script
If you wish to see further what this table entry should look like, open an .ism file in DevStudio and create a new custom action of type vbscript | stored in custom action.
Hope this helps.
Mark D
Software Quality Engineer
InstallShield Software Corp.
This is what I'm trying to execute:
Dim Sh
Set Sh = CreateObject("WScript.Shell")
sh.RegWrite "HKLM\Software\Microsoft\MapPoint\11.0\USA\Registration\", "EULA"
sh.RegWrite "HKLM\Software\Microsoft\MapPoint\11.0\USA\Registration\EULA", 0, "REG_DWORD"
Thanks,
Jim
I would recommend running Full MSI Validation Suite to ensure correctness of the MSI with MST, and log the installation for further troubleshooting information. Perhaps, there is a condition that prevent the custom action from firing.
:confused:
Thanks,
Jim
In addition, I would also verify the command line used to launch the MSI with MST to make sure that MST is actually applied to MSI.
Thanks for all your help!
Jim