Cannot create MSI with Custom Acion

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 LICENSE NUMBERS, ACTIVATION 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.
This topic is 5 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
petera
Posts: 11
Last visit: Thu Jun 15, 2023 8:52 am

Cannot create MSI with Custom Acion

Post by petera »

To help you better we need some information from you.

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product, version and build: PowerShell Studio 5.5.152.0
32 or 64 bit version of product:64
Operating system:
32 or 64 bit OS:Server 2012

*** Please add details and screenshots as needed below. ***

Trying to create a custom action called Create Shortcut. Get the following error:
heat.exe : warning HEAT5150 : Could not harvest data from a file that was expected to be a SelfReg DLL: C:\Deposits Update Manager\msi\MSI_BuildFolder\Deposits Update Manager.exe. If this file does not support SelfReg you can ignore this warning. Otherwise, this error detail may be helpful to diagnose the failure: Unable to load file: C:\Deposits Update Manager\msi\MSI_BuildFolder\Deposits Update Manager.exe, error: 193

C:\Deposits Update Manager\msi\heatout.wix(12) : error CNDL0005 : The Product element contains an unexpected child element 'Custom'.

I attached the wix file as well.
Custom.png
Custom.png (46.02 KiB) Viewed 1948 times
Custom.png
Custom.png (46.02 KiB) Viewed 1948 times
Attachments
heatout.wix.txt
(7.02 KiB) Downloaded 115 times
Custom Files.png
Custom Files.png (34.2 KiB) Viewed 1948 times
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Cannot create MSI with Custom Acion

Post by davidc »

It looks like the Wix templates are outdated. The issue will be resolved in the next service release.

So you don't have to wait, I attached the updated templates:
WixTemplates.zip
(8.42 KiB) Downloaded 215 times
Replace the templates in the following location with the ones in the zip file:

C:\Program Files\SAPIEN Technologies, Inc\PowerShell Studio 2018\MSIBuilder\

In addition, I recommend removing the reference to (Packaged Executable) from the Files sections, because you can't create executables from module projects.
David
SAPIEN Technologies, Inc.
This topic is 5 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.