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

Running a Custom Action EXE file issue

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 187 times
Issue JPG file
Issue JPG file
Execution_issue.jpg (195.44 KiB) Viewed 1759 times
myid4truecallerweb
Posts: 2
Joined: Mon Sep 14, 2020 7:03 am

Re: Running a Custom Action EXE file issue

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: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: Running a Custom Action EXE file issue

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

Return to “Building Installers”