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!

congnt92
Posts: 57
Joined: Wed Apr 16, 2014 7:53 am

Some small issues

Hi
I have some small issues.
1) The updater working very fine. But if I disconnect Internet, the Updater check for update quite slow. So, how to build the updater quickly detect a computer with an Internet connection or not then display dialogue allow user download and install or in case the computer does not connect Internet, the installation will start immediately without display any dialogue of checking update.
2) I want to build a .exe file which content some files and folders. But these files and folders will not be install to same directory. Can I build it?
3) I added a prerequisites package. But I want to install it silent. So what command lines would be type at No UI field? Same question for Full UI, Basic UI, repair and uninstall. And how to remove prerequisites package when uninstall main app?
4) I found that I can change set run as admin, prevent pin to taskbar with a shortcut in Files and Folders Page but I can't do this with a file. And I can set attributes with a file but I can't do this if it is a .ini file, example updater.ini.
Finally, that is so much to ask and I'm so sorry. Besides, I don't want to creat new topic for each issues. If I do that, I become a spammer. There are many issues and it take a lot of time to answer so I will wait.
Many thanks to u :P
p/s: may my topic can be sticked :mrgreen:
Last edited by congnt92 on Thu Apr 24, 2014 12:03 pm, edited 1 time in total.
congnt92
Posts: 57
Joined: Wed Apr 16, 2014 7:53 am

Re: Some small issues

May I create new topic for each question?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Some small issues

Hello,
1) The updater working very fine. But if I disconnect Internet, the Updater check for update quite slow. So, how to build the updater quickly detect a computer with an Internet connection or not then display dialogue allow user download and install or in case the computer does not connect Internet, the installation will start immediately without display any dialogue of checking update.
If no internet connection is found, the updater will prompt you with an error, The server name or address could not be resolved. Before prompting with that error, several attempts are made to connect, each one with a specific delay.
However, you can create your own custom action that will check if an internet connection is found and if it is you can launch the updater. You can take a look on the programmatically check whether my machine has internet access or not thread which may be useful to you.
2) I want to build a .exe file which content some files and folders. But these files and folders will not be install to same directory. Can I build it?
It doesn't matter if you package type is an .EXE or an .MSI. In the ("Application Folder") view from the Files and Folders page you can add the application files.
Also, you can create other folders if you need, using the [ New Folder ] toolbar button. Please take a look on the Folder Operations in the Files and Folders Page article which may be useful to you.
3) By the default, if we run a setup file which was installed before, the installation will display a dialogue allow repair, remove, modified. But I want to the installation remove app and then install app without display maintenance dialogue. Is it impossible?
Indeed, if you run the same installation package for the second time then Windows Installer will run the installer in maintenance mode and the user will then be presented with choices to alter the installed product, repair it or remove it (done through the MaintenanceTypeDlg). This is happening because the installation package has the same PackageCode GUID. A new PackageCode is generated each time you build your project. Think of the PackageCode as some sort of checksum. No two .msi files should ever have the same PackageCode unless they are identical.

Please take a closer look on the Product Identification article.
4) I added a prerequisites package. But I want to install it silent. So what command lines would be type at No UI field? Same question for Full UI, Basic UI, repair and uninstall. And how to remove prerequisites package when uninstall main app?
In the Install Command Lines field from the Prerequisite Setup Files Tab you can add command lines for launching the prerequisite under different UI environments. Each command is used by your prerequisite based on the UI level of the main package, i.e. if the main package runs with full UI the command from the "Full UI" field will be used to call the prerequisite, if the main installation package runs with Basic UI the command from the “Basic UI” field will be used to call the prerequisite, etc.
5) How to creat a setup file which only allow logged user is member of the "Administrators" user group install it? Need to use Launch Conditions Page or only need change Installation Type in Install Parameter Page. And on Windows Vista or above, if UAC wasnot turned off before, UAC dialogue will promt. Of course if you want to install, you must click yes button. But I want to run a custom action while installing my app through confirm UAC dialogue? We must change execution level in Install Parameter Page, right?
If your installation package require administrative right, then you can select the Per-user only (with administrator rights required) option or Per-machine only (fails if user is not administrator) option for the Installation Type from the Install Parameters page.

Please keep in mind that any tasks that require administrator privileges will trigger an UAC prompt (if UAC is enabled) and the user will have to enter its credentials.
Such administrative tasks include installing software and drivers, changing system-wide settings, viewing or changing other user accounts, and running administrative tools.

If the UAC is off then it will not be any prompt to enter admin credentials. If the UAC is off then the installation will be launched with the current log-on user right. If the log on user is a guest and the installer require administrator privileges then the installation will fail because it doesn't have sufficient privileges to complete this installation for all users of the machine.

You can take a look on the User Account Control article which may be useful to you.
6) I want to run a file in custom action page. How do run it in silent?
I'm not sure I fully understand your scenario. Can you please give me more details about this, maybe exemplify?
7) I found that I can change set run as admin, prevent pin to taskbar with a shortcut in Files and Folders Page but I can't do this with a file. And I can set attributes with a file but I can't do this if that file is a .ini file, example updater.ini.
Since the Prevent auto Pin to Start attribute is specific to shortcut properties, why would you like to have this functionality for a file?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
congnt92
Posts: 57
Joined: Wed Apr 16, 2014 7:53 am

Re: Some small issues

Hi, Dan.
You're really enthusiasm when answer all of my question. And I'm sorry because I found the answer for some issue by myself and then I edited the topic before you post reply. I'm sorry again.
But I still have some issues.
1) I choose "Check for update before installation". It's useful option. But it take me quite much time to install an app if a computer doesnot connect to Internet. Just I wish if computer doesn't connect to Internet, the checking will not run or run silent and more quickly.
2) I solved it. But it's was before, when I want to install an app to Programfile and Homedrive. Now, I have a problem when build an app that install to userprofile. I found this problem here, http://www.advancedinstaller.com/user-g ... older.html. But I don't know this line "2. Under "Wizard Dialogs Stage -> Searches" create a new "Set installer property" Custom Action with the following settings" (this line is at An example: installing in the user profile folder Title). I cannot found "Set installer property" at "Wizard Dialogs Stage -> Searches". In my AI ver, "Wizard Dialogs Stage -> Searches" content: prepareDlg, Appsearch, FindRelatedProduct.
3) May you don't fully understand my scenario. I setup an app. I run the setup again and want it uninstall app automatically then install without display MaintenanceTypeDlg. But now I think it is imposiblle. Maybe the MaintenanceTypeDlg always display if an app had installed before.
4) Can you give me some command to install prerequesites silent? And I wish the prerequesites will be remove when we uninstall main app. Can I do it?
5) I think I solved it. I want build an app which only allow user install it when user is a member of "administrator user group". Just choose "Per-machine only (fails if user is not administrator)". That's right??
6) I solved it. It's here. http://www.advancedinstaller.com/user-g ... indow.html
7) I want to hidden updater.ini file after the installation finish. But I can't change properties this file at files and folders page. And if we run the updater on windows 8.1 with download update folder (setting at update page) is Desktop folder, the checking will be fail. And it only success if we right click and choose run as administrator. So I want to change properties of the updater.exe file is Run as Administrator at files and folders page but it only availble with a shortcut.
Best regards.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Some small issues

Hello,
1) I choose "Check for update before installation". It's useful option. But it take me quite much time to install an app if a computer doesnot connect to Internet. Just I wish if computer doesn't connect to Internet, the checking will not run or run silent and more quickly.
This our default implementation. We'll consider this in a future version. Thank you for your suggestion.
I cannot found "Set installer property" at "Wizard Dialogs Stage -> Searches". In my AI ver, "Wizard Dialogs Stage -> Searches" content: prepareDlg, Appsearch, FindRelatedProduct.
Please note that you need to add the Set installer property predefined custom action with sequence from the Custom Actions page and schedule it after the Searches stage from the Wizard Dialogs Stage. Please see the attached image as a reference:
SetInstallerProperty.png
SetInstallerProperty.png (41.58 KiB) Viewed 5803 times
3) May you don't fully understand my scenario. I setup an app. I run the setup again and want it uninstall app automatically then install without display MaintenanceTypeDlg. But now I think it is imposiblle. Maybe the MaintenanceTypeDlg always display if an app had installed before.
As I said in my previos post, Windows Installer will run the installer in maintenance mode and the user will then be presented with choices to alter the installed product, repair it or remove it (done through the MaintenanceTypeDlg). Please note that in the Dialogs page, you can also see the Maintenance sequence and customize it further.
4) Can you give me some command to install prerequesites silent? And I wish the prerequesites will be remove when we uninstall main app. Can I do it?

Each prerequisite has its own command line statement for silent installation. You should test it first outside your main installation package and if it works, definitely it will work when you will add it in the Install Commands Lines fields. You can see an example by adding a prerequisite from our predefined list, most of them have a parameter in the Silent (No UI) field.
If you want to remove the prerequisite when your main installation is removed, then you can add the appropriate command line statement in the Uninstall using this command line field from the Prerequisite Setup Files Tab.
5) I think I solved it. I want build an app which only allow user install it when user is a member of "administrator user group". Just choose "Per-machine only (fails if user is not administrator)". That's right??
As I said, any tasks that require administrator privileges will trigger an UAC prompt (if UAC is enabled) and the user will have to enter its credentials.
Such administrative tasks include installing software and drivers, changing system-wide settings, viewing or changing other user accounts, and running administrative tools.

If the UAC is off then it will not be any prompt to enter admin credentials. If the UAC is off then the installation will be launched with the current log-on user right. If the log on user is a guest and the installer require administrator privileges then the installation will fail because it doesn't have sufficient privileges to complete this installation for all users of the machine.
So I want to change properties of the updater.exe file is Run as Administrator at files and folders page but it only availble with a shortcut.
Have you tried to create a shortcut to the Updater and place this shortcut on the Desktop folder from Files and Folders page? This way, you can enable the Run as administrator option, since it is a shortcut.

Please let me know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
congnt92
Posts: 57
Joined: Wed Apr 16, 2014 7:53 am

Re: Some small issues

Thank you very much, Dan. About hidden updater.ini file, I will use batch file to do this. Thank you again.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Some small issues

You're welcome,

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Some small issues

Hello,

The improvement regarding response time when no internet connection is found has been added in version 11.3 of Advanced Installer released on June 17th, 2014.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”