- How do I register a Font?
- How do I register a file?
- How do I create a shortcut?
- How do I place a folder in a specific feature?
- Why do all EXE files open with my application?
- How can I share a file between multiple packages so when one of the packages is uninstalled the file is not deleted?
- How to create a shortcut which launches the target file as administrator?
How do I register a Font?
You can register a Font by taking these steps:
- add the Font in the Files and Folders page.
- double click it or from the context menu select “Properties”.
- select the Registration Tab.
- enable the "Register font" checkbox.
- write the "Registration Name" only if the font is not True-Type.
How do I register a file?
In an Advanced Installer project, you can register a file by following these steps:
- add the file in the Files and Folders page
- double click it or from the context menu select “Properties”.
- in the Edit File dialog check the Auto register file (DLL, OCX, etc.) option
- select the registration method supported by your file
How do I create a shortcut?
A shortcut can be created through the Shortcut Wizard. This wizard can be launched by clicking on the "New Shortcut Wizard" button on the toolbar of the "Files and Folders" page. Also, you can use the "Wizards" -> "Shortcut" menu. The target of the shortcut can be an URL, a file, a folder or the uninstaller of the package.
How do I place a folder in a specific feature?
The first step is to create the feature in the Organization page. After that, in the Files and Folders page, the Feature combo on the toolbar can be used to select the target feature. Finally, adding the folder will make Advanced Installer place all the resulted components into the selected feature.
Why do all EXE files open with my application?
Most likely you created a file association for the EXE extension. In order to remove this file association you can try to uninstall the package. If this doesn't work, you can follow these steps:
- open Windows Explorer
- use the "Tools" -> "Folder Options" menu to open the "Folder Options" dialog
- go to the "File Types" tab
- Press the button
- In the "File extension" field write exe
- Press the button
- From the list of the "Associated File Type" field select Application and hit the button.
This way, the EXE file association is re-created to open applications.
How can I share a file between multiple packages so when one of the packages is uninstalled the file is not deleted?
For this you can use the Organization page to share the component of the file between packages. The following conditions must be met:
- the component uses the same name and same GUID in all packages
- the file is installed in the same location by all packages (it is recommended to use a public location)
This way, Windows Installer will see the component as shared between packages and it will use a reference count for it. Installing a package with the shared component will increase the reference count and uninstalling one will decrease the reference count. The component is removed when the last package which contains it is uninstalled (the reference count reaches 0).
How to create a shortcut which launches the target file as administrator?
For launching a file as administrator Microsoft recommends, starting with Windows Vista, to embed in your EXE a manifest file which specifies the execution level. In the following MSDN article you can find described all the steps required for creating a manifest and how to include it in your EXE file.