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!

shadyfan
Posts: 45
Joined: Sat Nov 25, 2006 8:15 pm

Is it possible to make an autorun program?

Hi,
I was just wondering if there's a way to make an autorun program. This program should consist of only one dialog. There will be text, which must be changed depending on this if a program is installed or not. The dialog also should have an option to exit.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
I was just wondering if there's a way to make an autorun program
What exactly you mean with an autorun program, could you please give me more details?

Waiting for your reply.

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
shadyfan
Posts: 45
Joined: Sat Nov 25, 2006 8:15 pm

Hi,
What I mean is I want to make an .exe file, not the .ini file. It should contain a menu for navigating through a menu. The menu will contain a few lines of text, linking to different operations (install the application, uninstall the application, visit the homepage, etc.). When the main program is installed (which could be checked by a proper registry search), the menu should be changed - instead of "Install the application", the text should be "Run the application". I hope it's more clear this time :)
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I'm afraid that Advanced Installer does not yet offer support to create automatically the autorun.inf so you need to create it manually like this:

Code: Select all

[autorun] 
open=launcher.exe
icon=filename.ico
The autorun.inf file must be on the root of the CD next to the msi package.

You need to create the launcher.exe that creates the menu with operations (install the application, uninstall the application, visit the homepage, etc.).

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
shadyfan
Posts: 45
Joined: Sat Nov 25, 2006 8:15 pm

Hi,
What I meant was I don't need an .ini file to be created :)
OK, but could I make this .exe file with only one dialog? I don't need a "Prepare Dialog". And are there any ways of hiding and showing a text according to a condition?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
What I meant was I don't need an .ini file to be created
If you want a program to by run when the CD is inserted the autorun.inf file must be on that CD.

What I meant was that you need to create a small .exe program (launched when the CD is inserted) that have a menu with those options (install the application, uninstall the application, visit the homepage, etc.).

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
shadyfan
Posts: 45
Joined: Sat Nov 25, 2006 8:15 pm

I have another idea since the other one is very complicated :-)
I'll make 2 different applications (.exe files). If a condition is true the first application will run, else - the second will run. These two applications may be in the application folder of the project. Can this be achieved with Advanced Installer?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
I'll make 2 different applications (.exe files). If a condition is true the first application will run, else - the second will run. These two applications may be in the application folder of the project. Can this be achieved with Advanced Installer?
What exactly you have in mind, could you please give me more details? What are those 2 different applications and are launched by how?

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
shadyfan
Posts: 45
Joined: Sat Nov 25, 2006 8:15 pm

Hi,
What I mean is the following. First I want to check if the user has an installed application on his/her computer. Let's say the application name is "App". I want to make a registry search to check if "App" is installed. I'll make 2 autorun .exe files - "autorun1.exe" and "autorun2.exe". So if "App" is installed I want "autorun1.exe" to run. Else if "App" is not installed I want "autorun2.exe" to run. Hope it's clear now :)
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
What I mean is the following. First I want to check if the user has an installed application on his/her computer. Let's say the application name is "App". I want to make a registry search to check if "App" is installed. I'll make 2 autorun .exe files - "autorun1.exe" and "autorun2.exe".
I suggest other approach. To use AutoIt to create that launcher.exe.

If you do not have C/C++ programming experience, I would suggest using AutoIt, a freeware BASIC-like scripting language designed for automating the Windows GUI. It can generate compiled executable scripts that can run without AutoIt being installed. See the following page for details: http://www.hiddensoft.com/autoit3

You can find installation instructions for AutoIt and the AutoIt SciTE editor here:
http://www.autoitscript.com/autoit3/sci ... lation.htm

Hope this helps.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”