Results 1 to 10 of 10

Thread: [RESOLVED] VS Setup Project installs for each user

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    10

    Resolved [RESOLVED] VS Setup Project installs for each user

    Hi,

    We're in the process of releasing software and i've noticed that our standalone version (Windows forms) reinstalls for each users, the issue for this is that we sell to colleges and generally they install of network shares. When the software tries installing for a user it can't find the network share (e.g. permission denied).

    How can i stop the installer from launching when the user launches the software.

    Reminds me of how Microsoft Office use to be back in the days of 2000.

    Liam

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VS Setup Project installs for each user

    Moved To Applications Deployment

  3. #3
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: VS Setup Project installs for each user

    What installer package are you using to deploy your app?

    If you are using a Setup and Deployment project and you are on VS2005 or above there is an InstallAllUsers property that you can set to True on the setup pacakge to install for all users.

  4. #4

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    10

    Re: VS Setup Project installs for each user

    Hi,

    Yes i'm using the VS built in setup project, i've checked that and it's set as true.

    This was on vista that i had the problem, i'll just give a quick check on XP too and report back.

    Regards
    Liam

  5. #5
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: VS Setup Project installs for each user

    Have you tried opening the MSI with Orca.exe and examining the value for ALLUSERS in the Property table? I believe it should be 1 to act as you want (always per-machine) on both XP and Vista.

    Specifying a Per-User or Per-Machine Installation

  6. #6
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: VS Setup Project installs for each user

    You may also want to run a test install with verbose logging to see what this package is requesting and getting done:

    Checking the Installation of Features, Components, Files

  7. #7

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    10

    Re: VS Setup Project installs for each user

    Hi,

    Thanks for that,

    I've checked with Orca and the value of ALLUSERS is 2 which means it will install as per machine if admin else will install as per users or fail on vista. I tried ALLUSERS=1 and still had same issue.

    This seems to be the correct setup on http://msdn.microsoft.com/en-us/libr...7k(VS.80).aspx Setup as To specify mandatory per-computer installation.

    It still however launches the installer again and runs the custom actions from the end of my installer.

    I've created a log file using msiexec -i example.msi -l C:\log.log

    What should i look for in the log file that may help?

    Regards
    Liam

  8. #8
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: VS Setup Project installs for each user

    I suppose I would look at each logged "request" and its corresponding "installed" and "action" values to see what the install actually did. In most cases the action should be "local" and not "source" or "advertise."

  9. #9

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    10

    Resolved Re: VS Setup Project installs for each user

    Hi,

    Thanks for that,

    I looked through and noticed that:

    Property(S): FolderForm_AllUsers = ME

    So i enabled the InstallAllUsersVisible property of the user interface Installation Folder.

    Now it still has


    Property(S): FolderForm_AllUsers = ME

    but further down it has:

    Property(C): FolderForm_AllUsers = ALL
    Property(C): FolderForm_AllUsersVisible = 1

    which it didnt have before.

    Very weird as by the site referenced in previous post not showing the option of Just Me or Everyone should make it default to everyone but it obviously doesn't.

    Thanks again for your support as without it i would not have looked into places that i did.

    Regards
    Liam

  10. #10

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    10

    Re: [RESOLVED] VS Setup Project installs for each user

    I knew it didnt seem right...

    Must have selected source on previouse try and that's why it seemed to have worked.

    The actual issue is the shortcut that i had created in VS Setup's filesystem.

    Going to diagnose further to see if it's the icon or what as a general shortcut to my exe works fine...

    Annoying that i've spent a week on this without running the exe direct...

    Liam

Posting Permissions

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



Click Here to Expand Forum to Full Width