Hiding Cmd Prompt of a Custom Action - Launch File - Advanced Installer Community
coroberti
Posts: 18
Joined: Sun Jan 19, 2020 4:11 pm

Hiding Cmd Prompt of a Custom Action - Launch File

Hi,
I've seen the link below:
https://www.advancedinstaller.com/user- ... indow.html

but pardon me since I cannot find the checkbox to hide the run / make it in background.
Attached the screenshot of what I see as the options.

Thanks in advance!
Robert
Attachments
Question-How-To-Hide.PNG
Question-How-To-Hide.PNG (30.94 KiB) Viewed 3067 times
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Hiding Cmd Prompt of a Custom Action - Launch File

Hello Robert,

The article you have linked me seems to be outdated, indeed.

In order to achieve what you want, please follow these steps:

- go to "Custom Actions" page

- remove your "Launch installed file" custom action

- add a "Launch File" custom action

- in the "File to launch field" input the following:

Code: Select all

[
FileToLaunch.png
FileToLaunch.png (61.69 KiB) Viewed 3064 times

- from the drop-down button, please select "File...". This will allow you to choose a file from "Files and Folders" page. Here, you should select your .EXE file.
FileToLaunch2.png
FileToLaunch2.png (13.63 KiB) Viewed 3064 times

The field should look like this:

Code: Select all

[#sample.exe]
(as per my example)

- in the "Command line" field, please insert your command line

- now please check the "Hide program's window" option

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
coroberti
Posts: 18
Joined: Sun Jan 19, 2020 4:11 pm

Re: Hiding Cmd Prompt of a Custom Action - Launch File

Dear Catalin,

It works if selected "Launch File".

It makes sense to correct the article to save people's time.

Thank you so much!

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

Re: Hiding Cmd Prompt of a Custom Action - Launch File

You are always welcome, Robert.
It works if selected "Launch File".
I am glad you got this working.
It makes sense to correct the article to save people's time.
Sure thing. We will update this as soon as possible.

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

Return to “Common Problems”