On 2: Create a registry item and put [TARGETDIR]Application.exe in it -
TARGETDIR is the installer property that's evaluated at run time to the
actual folder (the brackets make that happen).
On 1: It's not a Windows Installer issue as much as the fact that VS is not
a fully-featured setup builder, which is why there are a bunch of other
products, some of which let you use all the features of MSI. In your
situation I'd use a VBScript custom action based on the CreateShortcut
method of the WshShell object, condition it on the property in your dialog.
--
Phil Wilson
[MVP Windows Installer]
[quoted text, click to view] "Lieperik" <anonymous@discussions.microsoft.com> wrote in message
news:FC9228DE-FCB3-49D1-9B18-B12D5CB323AC@microsoft.com...
> I got two problem using Windows Installer:
>
> 1. Conditional Desktop Shortcut
> When I create an installer package using Visual Studio .NET and use a
checkbox dialog to ask whether the user wants to install a desktop shortcut
to the application there is not way how I can add a condition to the
shortcut which processes the information of the checkbox. It seems that if I
add a shortcut to the desktop it will always be installed and it is not
possible to add a condition to this.
[quoted text, click to view] >
> Question: Is there anybody who can tell me how to ask the user whether
he/she wants to add a shortcut to the desktop during installation and how to
process this so that it will be correctly added or not added?
[quoted text, click to view] >
> 2. Environment String Value
> I am not able to find any information on using environment string value.
What I want to do is to add a registry value to the
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run which
contains the APPLICATION PATH\application.exe. I want that the application
path is automatically added, dependent to the path the user has chosen in
the INSTALLATION FOLDER dialog.
[quoted text, click to view] >
> Question: Can anyone tell me how to automatically add the APPLICATION PATH
to the registry value during the installation depending on the folder the
user has chosen.
[quoted text, click to view] >
> Many thanks!!
>
> Lieperik
>
http://c-sharp.pagina.nl