views:

294

answers:

3

Hi All, I am using Visual Studio 2008. I made an installer , if i right click on setup.exe and click on properties, it show wrong company , File Version, Product Name , Product Version. Is there any way to set these values.

+1  A: 

click on your setup project and go to your properties window. if it is not displayed, click view menu at top most part of your vs2008 and click properties window. You can see there the Manufacturer, Version, Product Name etc. Change it and then rebuild your setup project.

junmats
Don't think this answers the question: wouldn't this change the MSI properties, not the `setup.exe` properties? -1
peSHIr
A: 

When you use a VisualStudio .NET setup project, the setup.exe part of the output does not really change when you compile. The real result of the setup project is the MSI file; this is your actual setup. The setup.exe is "just" there to make sure that (the correct version of) Microsoft Installer is installed on the machine before the MSI is executed by Microsoft Installer. So the properties of setup.exe will not change at all, except perhaps with another version of Visual Studio (or a Service Pack), no matter what you change in your setup project or how often your rebuild that setup project.

peSHIr
A: 

use msbuild for using setup -url=

<



Exec Command="$(PublishDir)\setup -url=$(ProviderUrl)" />

Another problem is that after using the /url switch to change out the URL, it appears message for manually confirming that the signature will be invalided for the assembly.

two issues:

  1. how can use setup -url=http://.... in mode silent ?? I dont want that appears the message for confirming.

  2. How can signature the setup.exe again ??

any solution about it ?? Thanks mister

My msbuild

<



Target Name="PublishClickOnce">

<



Exec Command="$(PublishDir)\setup -url=$(ProviderUrl)" /> 



<




Exec Command="$(Mage) -u $(PublishDir)\Frk.Security.CarWin.application -pu $(ProviderUrl)" /> 

<




Exec Command="$(Mage) -u $(PublishDir)\Frk.Security.CarWin.application -cf $(CertDir)\Frk.Security.CarWin_TemporaryKey.pfx" /> 




</



Target>
Alhambra Eidos