Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Generate tow setups from one project.
 

Generate tow setups from one project.

I need to generate two seperate setup programs. One with self certified drivers (for testing only), and one with uncertifed drivers (for use on 32bit machines). Currently I have to copy different files into a directory and then rebuild the project. Can I setup a project that will build two different setups one for each set of drivers. I think I could have two completly seperate setup projects in one solutilion, but it would be hard to keep them synronized.

Any suggestions?
BarberColman  Wednesday, August 05, 2009 12:48 PM

Hi BarberColman,

As far as I know, there is no way to build two setup files via one setup project. But you can add all the files to a setup project and conditionally install files of one kind of driver based on the user choices. This is a walkthrough:
http://msdn.microsoft.com/en-us/library/9x23561f(VS.71).aspx.

Let me know if this helps.
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
  • Marked As Answer byBarberColman Friday, August 07, 2009 2:44 PM
  • Proposed As Answer byShariqDON Friday, August 07, 2009 2:25 PM
  •  
Aland Li  Friday, August 07, 2009 6:37 AM
you can use Update Function every time you publish your application and press update button

Imports System.Deployment.Application


Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim ad As ApplicationDeployment
        Dim info As UpdateCheckInfo

        ad = ApplicationDeployment.CurrentDeployment
        info = ad.CheckForDetailedUpdate

        If Not info.UpdateAvailable Then
            MsgBox("No Update Found")
            Return
        End If

        Dim doupdate As Boolean = True

        If info.IsUpdateRequired Then
            MsgBox("There is Some updates Founds , Downloading Now...")
        Else
            If MsgBox("Update available. Download Now?", MsgBoxStyle.YesNo) = MsgBoxResult.No Then
                doupdate = False
            End If
        End If

        If doupdate Then
            ad.Update()
            MsgBox("The Update Has been Downloaded. Now Restart Application")
            Application.Restart()
        End If

    End Sub
after complete this project Publish it...
then remake or make change in application and again publish in same folder then press update button Its now update
if
my anwer is correct then press Answer Button
ShariqDON  Friday, August 07, 2009 2:26 PM

Hi BarberColman,

As far as I know, there is no way to build two setup files via one setup project. But you can add all the files to a setup project and conditionally install files of one kind of driver based on the user choices. This is a walkthrough:
http://msdn.microsoft.com/en-us/library/9x23561f(VS.71).aspx.

Let me know if this helps.
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
  • Marked As Answer byBarberColman Friday, August 07, 2009 2:44 PM
  • Proposed As Answer byShariqDON Friday, August 07, 2009 2:25 PM
  •  
Aland Li  Friday, August 07, 2009 6:37 AM
you can use Update Function every time you publish your application and press update button

Imports System.Deployment.Application


Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim ad As ApplicationDeployment
        Dim info As UpdateCheckInfo

        ad = ApplicationDeployment.CurrentDeployment
        info = ad.CheckForDetailedUpdate

        If Not info.UpdateAvailable Then
            MsgBox("No Update Found")
            Return
        End If

        Dim doupdate As Boolean = True

        If info.IsUpdateRequired Then
            MsgBox("There is Some updates Founds , Downloading Now...")
        Else
            If MsgBox("Update available. Download Now?", MsgBoxStyle.YesNo) = MsgBoxResult.No Then
                doupdate = False
            End If
        End If

        If doupdate Then
            ad.Update()
            MsgBox("The Update Has been Downloaded. Now Restart Application")
            Application.Restart()
        End If

    End Sub
after complete this project Publish it...
then remake or make change in application and again publish in same folder then press update button Its now update
if
my anwer is correct then press Answer Button
ShariqDON  Friday, August 07, 2009 2:26 PM
Thanks
A short sweet and simple answer.
BarberColman  Friday, August 07, 2009 2:44 PM
its helpful?
if you instal your software in another computer and you make software change or modify.
then copy your all file of publish and replace in your other computer of instalation folder then press update button it can update...

my anwer is correct then press Answer Button
ShariqDON  Friday, August 07, 2009 2:49 PM

You can use google to search for other answers

Custom Search

More Threads

• passing URL arguments to ClickOnce application??
• ClickOnce and MSI together.
• VS2005 - Publish Succeeded but problems running application
• Disappearing Desktop Website Shortcut Icons
• .NET Framework Hanging on Installation
• Deployment url?
• Question about the Uninstall process.
• Distribute "trust an assembly"
• Mage "-CertHash" option from LocalMachine: it is possible?
• Pass cmd line argument to .msi