Results 1 to 9 of 9

Thread: Modifying a setup project

  1. #1
    brainleak is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2016
    Posts
    27
    Reputation
    7

    Modifying a setup project

    I created a setup project but later on I realized I'd forgotten to include the option to add a shortcut to the user's desktop. So I proceeded to add this option but then when I built + rebuilt the project it did not create new setup files.

    How am I supposed to handle this?

  2. #2
    JuggaloBrotha's Avatar
    JuggaloBrotha is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Jun 2004
    Location
    Lansing, MI; USA
    Posts
    4,472
    Reputation
    1016
    Quote Originally Posted by brainleak View Post
    I created a setup project but later on I realized I'd forgotten to include the option to add a shortcut to the user's desktop. So I proceeded to add this option but then when I built + rebuilt the project it did not create new setup files.

    How am I supposed to handle this?
    How are you determining the new setup files aren't being created when you build the project?
    Also, what setup files project is it you're using? Inno? the VS Setup & Deployment (MSI)? InstallSheild? Other?
    Currently using: VS 2010 Ultimate on Win7 Ultimate x64.

  3. #3
    brainleak is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2016
    Posts
    27
    Reputation
    7
    Quote Originally Posted by JuggaloBrotha View Post
    How are you determining the new setup files aren't being created when you build the project?
    Also, what setup files project is it you're using? Inno? the VS Setup & Deployment (MSI)? InstallSheild? Other?
    I've only recently taken the step from VB6 to .net so I'm still getting familiar with everything.

    I have just checked the dates: in the setup project folder, the appname.vdproj is updated but the actual .exe and .msi files inside the reelease folder are not.

    I'm using Other project types => Visual Studio Installer => Setup wizard.

  4. #4
    JuggaloBrotha's Avatar
    JuggaloBrotha is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Jun 2004
    Location
    Lansing, MI; USA
    Posts
    4,472
    Reputation
    1016
    Quote Originally Posted by brainleak View Post
    I've only recently taken the step from VB6 to .net so I'm still getting familiar with everything.

    I have just checked the dates: in the setup project folder, the appname.vdproj is updated but the actual .exe and .msi files inside the reelease folder are not.

    I'm using Other project types => Visual Studio Installer => Setup wizard.
    Is your Setup & Deployment project set to compile to Release? Or could it be compiling to Debug right now?
    Currently using: VS 2010 Ultimate on Win7 Ultimate x64.

  5. #5
    brainleak is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2016
    Posts
    27
    Reputation
    7
    Quote Originally Posted by JuggaloBrotha View Post
    Is your Setup & Deployment project set to compile to Release? Or could it be compiling to Debug right now?
    I've checked the configuration manager and it's set to release.

  6. #6
    brainleak is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2016
    Posts
    27
    Reputation
    7
    And because it won't compile, the Install option is disabled (greyed) in the menu that pops up at right mouse button click in the solution explorer.

  7. #7
    brainleak is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2016
    Posts
    27
    Reputation
    7
    Finally I managed to build the setup project.


    In the file system I went to the application folder and right clicked on "Primary output from appname" to create a shortcut, which I then moved to the User's desktop folder and then to the user's program's menu. This I didn't do in my previous attempts. But I don't see why this should make a difference as far as building the setup project goes. Maybe there's something else I am overlooking.


    Still, there's one detail that isn't quite working. The shortcut in the user's program's menu has a generic icon rather than the correct application icon as the shortcut in the user's desktop has.

  8. #8
    JuggaloBrotha's Avatar
    JuggaloBrotha is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Jun 2004
    Location
    Lansing, MI; USA
    Posts
    4,472
    Reputation
    1016
    If there's a build error with your project then you can expect it to not create new output files (the installer files in this case) which is why when you click Build it doesn't create said files.
    Currently using: VS 2010 Ultimate on Win7 Ultimate x64.

  9. #9
    brainleak is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2016
    Posts
    27
    Reputation
    7
    Quote Originally Posted by JuggaloBrotha View Post
    If there's a build error with your project then you can expect it to not create new output files (the installer files in this case) which is why when you click Build it doesn't create said files.
    This makes sense though I'm a bit surprised no warnings were issued.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •