It's been a while since I packaged so please bear with me. I used Wise to create packages in the past and creating custom actions was simple. I am trying to create a very simple custom action to run a vbscript to kill a process using pskill.exe. The script works if I run it manually but I can't seem to get the custom action to fire.
I create the custom action using the wizard and selected vbscipt and included the script in the package.
I set the custom action in the the Install>Execute Sequence and gave it various sequence numbers but I want this custom action to run before any files are copied. The msi log files does not even show the custom action running.

Please help with what is probably a very simple task that I'm just missing.
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
I was able to take the same type of custom action and get it working using an eval version of Wise but I need to figure out how to get this working in WinInstall. Any suggestions would be greatly appreciated.
Answered 10/03/2008 by: JimA
Yellow Belt

Please log in to comment
0
copy the CustomAction table row from your working Wise package into the WinInstall version.

Also it would be better to use an EXE custom action as using a VBScript and shelling out to other processes potentially can be problematic depending on security.

Once in vbs you can lose context of the calling user by shelling out to other processes. If you use an EXE CA it will be more likely to run in the desired context you intend to use.
Answered 10/05/2008 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment
0
Thanks I took your advise and change to use the exe. Can you tell me how to do this without importing the CustomAction table row from my Wise package? This would save me a bunch of time when I try and convert the rest of my WinInstall packages to MSI files. Also I only have a 30 day eval of Wise and I'm sure I wont be able to finish my conversions by then.

Thanks again for any help provided
Answered 10/06/2008 by: JimA
Yellow Belt

Please log in to comment
0
I looks like I had to put in the full path to the executable even though it said it was optional. Has this happened to anyone else? At least its working now.
Answered 10/07/2008 by: JimA
Yellow Belt

Please log in to comment
0
it shouldnt need the full path,

can you post what your putting in your CA table

Action, Type, Source Target

i.e. Blah,1058, [blah], null
Answered 10/13/2008 by: jmcfadyen
Fifth Degree Black Belt

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