Book a Demo

Author Topic: C# AddIn: WiX installer not working properly  (Read 4235 times)

AndreasBaur

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
C# AddIn: WiX installer not working properly
« on: August 14, 2012, 06:54:24 pm »
Hi everybody,

I created an msi-installer using WiX 3.5 and VS2010 for my add-in. I have now the issue that some users don't have enough privileges to write on the C-drive. In the installer dialog you can change the destination folder, but this has no effect. The installer still wants to write to the location that was displayed before, which is the one I set in the Files.wxs. Is there a way to make the installer work as intended, i.e. changing the directory in the installer dialog has an effect?
The other problem I have, is that I want the add-in installed for every user on the machine. Is there a flag for the installer, where I can set so that the add-in is installed for every user? It should be working, so that you don't have to be an admin on the pc, which means that i can not use the HKLM registry.

Thanks in advance
Andreas

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: C# AddIn: WiX installer not working properly
« Reply #1 on: August 16, 2012, 03:01:54 pm »
Andreas,

I don't think you can install something for all users without admin privileges. (that would seem logical wouldn't it?)

Geert

Michael Proske

  • EA User
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: C# AddIn: WiX installer not working properly
« Reply #2 on: September 20, 2012, 08:07:23 pm »
So answer to question 2 it doesn't help you to install your plugin under HKLM because Sparx searches under HKLU. If you install it on a machine that will be shared among different users you have to install the reg key for the plugin for each user individually. I have learned this using EA on a terminal server.
The first problem i do not understand. Normally you can choose the directory during installion. Did you manually set c: as the installation drive in the folder editor of VS2010 for the installation package ?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: C# AddIn: WiX installer not working properly
« Reply #3 on: September 20, 2012, 08:34:16 pm »
Quote
So answer to question 2 it doesn't help you to install your plugin under HKLM because Sparx searches under HKLU. If you install it on a machine that will be shared among different users you have to install the reg key for the plugin for each user individually. I have learned this using EA on a terminal server.
Micheal,

That information is outdated. They started supporting HKLM in version 8 somewhere (check the release notes to be sure).

Geert