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
FOLLOW US
Get the latest news in Application Packaging