We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Medwin1994
Posts: 3
Joined: Thu Jun 11, 2020 8:06 pm

How can I create a shortcut checkbox?

Hi,

I am Persian speaking, so if there is a problem with this text, I apologize.

I am using version 17 of the software.

In the final dialog, I wanted to create two checkboxes that the user could control by checking or unchecking to create shortcuts on the desktop and start menu.

Please guide me in simple language.

Thank you very much.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How can I create a shortcut checkbox?

Hi and welcome to our forums.

I'm afraid that the shortcuts are created during the "ProgressDlg" dialog, they cannot be created when the "Finish" button is pressed. So, in order to create them based on a checkbox, you can use the "ShortcutsDlg" built-in dialog.

Let me know if you have other questions.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Medwin1994
Posts: 3
Joined: Thu Jun 11, 2020 8:06 pm

Re: How can I create a shortcut checkbox?

Hello

Thank you very much for your help Eusebiu

But I want to create checkboxes in the "InstallTypeDlg" section. as you know this dialog is before "ProgressDlg".

For example, I put this photo.

Image

please help me.

Thank You again.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How can I create a shortcut checkbox?

Hi,

In order to install a shortcut based on a checkbox, you can implement the steps described in the "Create shortcuts if condition" thread.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Medwin1994
Posts: 3
Joined: Thu Jun 11, 2020 8:06 pm

Re: How can I create a shortcut checkbox?

Eusebiu wrote: ↑Mon Jun 15, 2020 1:29 pm Hi,

In order to install a shortcut based on a checkbox, you can implement the steps described in the "Create shortcuts if condition" thread.

Best regards,
Eusebiu
Hi,

Thanks again for answering to my questions, I clicked on the link you put and unfortunately I didn't understand anything. I am a Persian speaker and it is a bit difficult for me, so if you are kind and explain in a way that I understand, I will be grateful. I use Google Translator for writing and typing.

(For example, just explain how to create a checkbox to create a shortcut on the desktop)

Best regards.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: How can I create a shortcut checkbox?

Hello,

In order to achieve what you want, please follow the steps provided below:

1. add the file for which you want to create a shortcut and a dummy file in the "Files and Folders" page

FilesAndFoldersPage.png
FilesAndFoldersPage.png (233.71 KiB) Viewed 5799 times

2. right click on your EXE for which you want to create a shortcut --> "New Shortcut To" --> "External File"

rightClickShortcutToExternalFile.png
rightClickShortcutToExternalFile.png (47.62 KiB) Viewed 5799 times

3. Configure the shortcut as in the screenshot below:

ShortcutConfiguration.png
ShortcutConfiguration.png (33.78 KiB) Viewed 5799 times

4. go to "Dialogs" page and add the checkbox to your dialog

CheckBox.png
CheckBox.png (365.23 KiB) Viewed 5799 times

As you can see, the checkbox control has the following property assigned to it:

CHECKBOX_1_PROP

and, if the checkbox has the "checked" state, the above property will have the following value:

Code: Select all

CHECKBOX_1_PROP = "CheckBox"

5. go back to "Files and Folders" page. Here, right click on your dummy file --> "Go to Component"

GoToComponent.png
GoToComponent.png (59.5 KiB) Viewed 5799 times

6. here, please make sure that the resource for your shortcut is under the dummy resource component

ComponentCondition.png
ComponentCondition.png (87.42 KiB) Viewed 5799 times

7. set the "Condition" as in the above screenshot


Hope this helps.

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

Return to “Building Installers”