Running a Custom Action EXE file issue

Need help authoring your installer? Ask the community for tips and advice.
Post Reply
myid4truecallerweb
Posts: 2
Joined: Mon Sep 14, 2020 7:03 am

Running a Custom Action EXE file issue

Post by myid4truecallerweb » Mon Sep 14, 2020 7:28 am

Hi All,
I am new to Advanced Installer and what I need to do is to run a custom action (exe) file from APPDIR folder and get the file deleted once the installation is done.
Below is what I tried
1. Added the exe (Del.exe) as a temporary file.
2. Moved the file from Temp Folder to APPDIR
3. Created a a custom action (Del_Chck)
@ File Path : [&Del.exe]
@ Working Dir: APPDIR
@ Execution as deferred.

But I get the error message as shown in the attached image file.

Attached the api which I am trying to build.

Note: I tried a sample api from advance installer FAQ which run notepad.exe temporarily. I hope to my knowledge I followed the same steps, but still I get the error message during the installation. Also I just need to run this exe only by a Condition!!! in original API I added a dialog which has a checkbox(CheckBox_1), if that check box is checked then only this Del exe should run else should be excluded how ever finally get it deleted.

Kindly help me to re-solve and learn about this issue. Advance Thanks.
Attachments
ExeWithWorkingDirectoryExample.zip
API zip file
(48.11 KiB) Downloaded 3 times
Execution_issue.jpg
Issue JPG file
Execution_issue.jpg (195.44 KiB) Viewed 82 times

myid4truecallerweb
Posts: 2
Joined: Mon Sep 14, 2020 7:03 am

Re: Running a Custom Action EXE file issue

Post by myid4truecallerweb » Thu Sep 17, 2020 7:23 am

Hi All,

Selected "Launch file" in custom action instead of "Launch EXE from working directory", after the change the temp exe is running without any issue.

Thank

Catalin
Posts: 3118
Joined: Wed Jun 13, 2018 7:49 am

Re: Running a Custom Action EXE file issue

Post by Catalin » Thu Sep 17, 2020 2:14 pm

Hello and welcome to our forums,

Thank you for your followup on this and for sharing your solution with us.

I am glad everything works as expected now.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Post Reply