Re: Problems with a C++ Setup project

Tech-Archive recommends: Fix windows errors by optimizing your registry



Okay...I'll do some digging through the documentation.


Thanks again,

Max

"Phil Wilson" <pdjwilson@xxxxxxxxxxxxxx> wrote in message
news:OigQv40cFHA.796@xxxxxxxxxxxxxxxxxxxxxxx
> People typically do it with a custom action conditioned on the checkbox
> property. There's a Windows Script Host doc example "Creating a Shortcut".
> I'm not sure what the C++ etc equivalent is. VBScript will work in a
> custom action.
> --
> Phil Wilson
> [Microsoft MVP-Windows Installer]
>
> "Max Schneider, Image Innovation" <max@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote
> in message news:jaqse.1347$Gp.128@xxxxxxxxxxx
>> Thanks, Phil...part 1 worked great!
>>
>> I take it from your comment on item 2 that it's not possible to
>> conditionally install the shortcuts via VS then?
>>
>>
>> Thanks again and regards,
>>
>> Max
>>
>> "Phil Wilson" <pdjwilson@xxxxxxxxxxxxxx> wrote in message
>> news:uDvEAgocFHA.3280@xxxxxxxxxxxxxxxxxxxxxxx
>>> 1. The issue here is that the SendTo folder doesn't seem to work with
>>> advertised shortcuts, which is what Visual Studio and Windows Installer
>>> generate. It does work if you edit the MSI file manually (Orca from the
>>> Windows Installer section ofthe Platform SDK) and add to the property
>>> table the property DISABLEADVTSHORTCUTS (case sensitive) and give it a
>>> value of 1. The shortcuts then are not advertised shortcuts.
>>>
>>> 2. VS is a bit misleading in this area. The creation of shortcuts is
>>> bound to the installation of the file, so you can't have one without the
>>> other despite the condition.
>>> --
>>> Phil Wilson
>>> [Microsoft MVP-Windows Installer]
>>> Definitive Guide to Windows Installer
>>> http://apress.com/book/bookDisplay.html?bID=280
>>>
>>> "Max Schneider, Image Innovation" <max@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
>>> wrote in message news:496se.2320$uS2.952@xxxxxxxxxxx
>>>> I'm working on my first Setup project using VC++ 2003 Standard Edition
>>>> and have run into a couple of problems:
>>>>
>>>> 1. In the File System, I added the User's Send To folder via Add
>>>> Special Folder, created a shortcut to Primary Output (Active) in the
>>>> Application Folder, and dragged this to the Send To Folder. However,
>>>> even though the shortcut is deployed to the SendTo folder, it doesn't
>>>> seem to work. The same shortcut does work in the Quick Launch tray and
>>>> on the Desktop.
>>>>
>>>> 2. I want make the shortcuts optional, so I added Checkboxes (A) to the
>>>> user interface before the Installation Folder dialog under Install,
>>>> named a checkbox CBDESKTOP, and then added CBDESKTOP=1 to the User's
>>>> Desktop Condition property. However, even if the checkbox is not set,
>>>> the shortcut is still created.
>>>>
>>>>
>>>> Thanks,
>>>>
>>>> Max
>>>>
>>>
>>>
>>
>>
>
>


.



Relevant Pages

  • Re: Drag and drop
    ... They use Windows Installer shortcuts. ... find only program title, not the actual program EXE, in the Target textbox. ... These are windows Installer's shortcuts. ...
    (microsoft.public.windowsxp.general)
  • Re: VS Setup Projects and Vista "Run as Administrator"
    ... whether or not your shortcuts are 'advertised'. ... You can do either from Windows Installer, ... just forget about VS.NET deployment projects and use WiX. ...
    (microsoft.public.vstudio.general)
  • Re: finding target file
    ... Determine the target path of Windows Installer Shortcuts: ... want to find the .exe file for excel. ...
    (microsoft.public.windows.vista.file_management)
  • Re: Conditional installation of shortcuts?
    ... custom windows and add them to the deployment project. ... Visual Studio does not let you use all the features of Windows Installer, ... > a question about conditional installation of shortcuts. ... > the folder where I want the shortcut deployed. ...
    (microsoft.public.dotnet.framework.setup)
  • Re: msi wrapper for Windows Updates
    ... "Success" from a custom action program is defined as an exit code of zero. ... Definitive Guide to Windows Installer ... >>> restart. ...
    (microsoft.public.sms.swdist)