Deployment Project - Custom Checkbox Form - Can't reference value!

G

Guest

I created a setup project in VS.NET 2k5 and added an additional dialog to ask
the user where they would like to place icons for my application. The options
are Desktop and QuickLaunch Menu.

When the user unchecks one of these, or checks one of these, the value is
completely disregarded by my setup project when installation commences. I
have found other users complaining of the same thing, and I have followed the
instructions given at:
http://msdn2.microsoft.com/en-us/library/k3bb4tfd.aspx
under the "To add the samples to the installer" section about 3/4 of the way
down the page.

Other users having this same issue can be found at
http://discuss.develop.com/archives/wa.exe?A2=ind0511a&L=dotnet-winforms&T=0&F=&S=&P=651

Thank you for any advice!
 
G

Guest

OK, I've got a workaround for this, but it isn't pretty.

First, using the codition on the User's Desktop or User's Programs Menu
doesn't work. If someone know the proper way to submit a bug report I'd be
happy to submit one.

The workaround is that shortcuts will not be createx if the source file does
not exist. So...to create a conditional shortcut to your Primary Output do
the following:

1) Add an additional copy of the Primary Output to your setup project in the
File System view.
2) VS will complain (error) but will eventually create duplicate the Primary
Output
3) Set the condition on the new Primary Output (ex: CHECKBOXA1="1")
4) Create a shortcut to this new Primary Output

If you have only one shortcut to the source file then it was suggested to me
to put a condition on the original Primary Output (or whatever your source
file is) of: CHECKBOXA1 <> "1"

That did nothing for me because I have multiple shortcuts to the same file.

The big downside is that your msi will have a copy of the exe for each
Primary Output you create, and therefore will be larger. In my case this was
three copies with a fourth if I decide to to a Quick Launch short cut.

I hope this helps someone.

Here's looking forward to SP1 :)
-Mont
 
G

Guest

Thanks for the work Mont - *toasts to SP1 along with you*

Maybe an MS guy will get on here and address it so we know it's getting
taken care of.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top