Custom Actions Crash / Uninstaller?

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DFIR-CLE
Posts: 11
Joined: Thu Oct 17, 2019 7:46 am

Custom Actions Crash / Uninstaller?

Post by DFIR-CLE » Sun Oct 27, 2019 8:05 pm

To help you better we need some information from you.

Product, version and build: latest
32 or 64 bit version of product: 64
Operating system: win10
32 or 64 bit OS: 64

Hello - I just got my MSI file packaged with my staging folder and an extra ps1 script which creates my desktop shortcut. All is working well with the installation process now, but I am not able to add in another custom action below my current action named "desktop icon" (attached). Which means that upon installation, I am able to get the desktop shortcut created, but I am not able to create the action to remove it upon uninstall. Anytime I click to create a new action, my window sits for a split second then crashes. Is this something I am doing or possibly a bug?

Assuming this issue gets resolved, in an ideal situation, I would be able to create my desktop shortcut upon install and remove it with uninstall.As part of the second phase (uninstall), I would like to have an uninstall file created via the MSI, is this possible? I can't seem to find an documentation on this.

Thanks in advance!

DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

User avatar
mxtrinidad
Site Admin
Posts: 369
Joined: Sun Mar 03, 2013 12:42 pm

Re: Custom Actions Crash / Uninstaller?

Post by mxtrinidad » Mon Oct 28, 2019 5:25 am

We'll be investigating the issue you're experiencing and get back to you.

Thanks

User avatar
brittneyr
Site Admin
Posts: 236
Joined: Thu Jun 01, 2017 7:20 am

Re: Custom Actions Crash / Uninstaller?

Post by brittneyr » Mon Oct 28, 2019 1:35 pm

There is a bug when adding custom actions to an installer with SAPIEN Script Packager and our development team is working on a fix. This should be resolved in the next release (5.6.169) of PowerShell Studio which will be released soon.
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
brittneyr
Site Admin
Posts: 236
Joined: Thu Jun 01, 2017 7:20 am

Re: Custom Actions Crash / Uninstaller?

Post by brittneyr » Tue Oct 29, 2019 7:50 am

Please try the latest build of PowerShell Studio (5.6.169) and let me know if the behavior persists.
Brittney Ryn
SAPIEN Technologies, Inc.

DFIR-CLE
Posts: 11
Joined: Thu Oct 17, 2019 7:46 am

Re: Custom Actions Crash / Uninstaller?

Post by DFIR-CLE » Wed Oct 30, 2019 4:52 pm

Will do! Thanks for the reply!

For the second part of my question - Is there a way to create an uninstaller file for my MSI to avoid an end user having to manually uninstall? I'll go update now because that question hinges on the ability to create the second custom action. Stay tuned on my end.

DFIR-CLE
Posts: 11
Joined: Thu Oct 17, 2019 7:46 am

Re: Custom Actions Crash / Uninstaller?

Post by DFIR-CLE » Wed Oct 30, 2019 6:16 pm

Success! The update fixed the custom action crash bug. I was able to get my desktop shortcut installed and now it is able to be removed upon uninstall as well. Only thing left is to create an Uninstaller.msi file (if that's possible). Thanks for the update re latest version by the way, that was a really quick turnaround!

User avatar
Alexander Riedel
Posts: 7125
Joined: Tue May 29, 2007 4:43 pm

Re: Custom Actions Crash / Uninstaller?

Post by Alexander Riedel » Mon Nov 11, 2019 11:51 am

To quietly uninstall any MSI use
msiexec.exe /x "C:\Example.msi" /qn
Alexander Riedel
SAPIEN Technologies, Inc.