I have reviewed your uploaded files and added the exe you sent to my sample installer.
It actually shows up behind the installer, so you may want to force the form to be the top most when you load it.
I can obviously not build your .psbuild file, but I did not find any setting in it that stands out.
Just to make sure sequence is not an issue, I would try moving your register app to the top of the custom actions list. See if that makes a difference.
As you can see it shows up.Add ps exe to custom actions
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.
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.
- Alexander Riedel
- Posts: 8478
- Last visit: Tue Mar 26, 2024 8:52 am
- Been upvoted: 37 times
- Alexander Riedel
- Posts: 8478
- Last visit: Tue Mar 26, 2024 8:52 am
- Been upvoted: 37 times
Re: Add ps exe to custom actions
I have added the sample installer using your supplied exe here. Run this on your machine to determine if your OS or settings are the issue and not the exe file.
- Attachments
-
- decodehr (2).zip
- (1.91 MiB) Downloaded 15 times
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
-
- Posts: 21
- Last visit: Sun Jan 07, 2024 5:33 pm
Re: Add ps exe to custom actions
Thank you. I noticed that your installer wizard looks different than mine. Is there a difference?
-
- Posts: 21
- Last visit: Sun Jan 07, 2024 5:33 pm
Re: Add ps exe to custom actions
I ran yours and it works fine, the register product exe runs. I also moved the register product to the top of the custom actions and it did not make any difference, the exe never starts.
- Alexander Riedel
- Posts: 8478
- Last visit: Tue Mar 26, 2024 8:52 am
- Been upvoted: 37 times
Re: Add ps exe to custom actions
The test installer I used was once used to demonstrate customization options. It has custom bitmaps added at the top which your settings indicate you did not do. Is that what you mean?
If not, please send a screenshot.
Are you running the real registration program in your installer or also what you sent me. Have you tried running the modified one you sent me?
Maybe that is the difference?
If not, please send a screenshot.
Are you running the real registration program in your installer or also what you sent me. Have you tried running the modified one you sent me?
Maybe that is the difference?
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
-
- Posts: 21
- Last visit: Sun Jan 07, 2024 5:33 pm
Re: Add ps exe to custom actions
I meant the size of the installer window was different than mine. I switched to a minimal wizard (including EULA) but it didn't make any difference. Yes, I did use the one I sent you as well as the original but the same thing happened, the packaged exe did not run. Is the .psbuild file the one that lists all the options I used in the MSI builder? Is there anything else you need to look at? Thanks.
- Alexander Riedel
- Posts: 8478
- Last visit: Tue Mar 26, 2024 8:52 am
- Been upvoted: 37 times
Re: Add ps exe to custom actions
It's a little strange. Not sure what would be causing this. Let's do this:
Create a dummy script "Hello World".
Make an installer for it.
Add a custom action that runs your trimmed down forms app.
Add that and the config to the files installed.
Try the MSI on your machine with logging.
Assuming it does the same, as in in not running that process,
add all files, exe, script, psbuild, log, anything I need to replicate this and upload it.
I specifically want the MSI and the source files so I can recreate it here and compare the binary files and the logs.
Create a dummy script "Hello World".
Make an installer for it.
Add a custom action that runs your trimmed down forms app.
Add that and the config to the files installed.
Try the MSI on your machine with logging.
Assuming it does the same, as in in not running that process,
add all files, exe, script, psbuild, log, anything I need to replicate this and upload it.
I specifically want the MSI and the source files so I can recreate it here and compare the binary files and the logs.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
-
- Posts: 21
- Last visit: Sun Jan 07, 2024 5:33 pm
Re: Add ps exe to custom actions
Test Form created. I added the scrubbed exe as well. When I tried to install, same issue (the exe did not run), however I did notice that the wizard did not default to the program files directory even though I did have the install directory set to: [ProgramFiles]]\[Product]. The install log file is included in the zip. Thank you.
- Alexander Riedel
- Posts: 8478
- Last visit: Tue Mar 26, 2024 8:52 am
- Been upvoted: 37 times
Re: Add ps exe to custom actions
You have a double ]] in "[ProgramFiles]]\[Product]" that's what causes the path to be incorrect.
I found the source of your troubles. You use the name of 'RegisterProduct' for the custom action name.
The internal actions (according to the MSI log) have one with a name 'RegisterProduct' and THAT get executed. Just not yours.
Rename your custom action to 'RegisterMyProduct' and it should work fine.
FWIW, I had no idea either, learned something new today.
I found the source of your troubles. You use the name of 'RegisterProduct' for the custom action name.
The internal actions (according to the MSI log) have one with a name 'RegisterProduct' and THAT get executed. Just not yours.
Rename your custom action to 'RegisterMyProduct' and it should work fine.
FWIW, I had no idea either, learned something new today.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- Alexander Riedel
- Posts: 8478
- Last visit: Tue Mar 26, 2024 8:52 am
- Been upvoted: 37 times
Re: Add ps exe to custom actions
For reference, this are the standard MSI actions:
https://learn.microsoft.com/en-us/windo ... -reference
Your custom actions should not have a name already used.
https://learn.microsoft.com/en-us/windo ... -reference
Your custom actions should not have a name already used.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.