c# - Why the shortcut created by my MSI install start the setup process again each time? -


i created msi installer our c# application via vs 2008. installed it. created shortcut me on desktop. clicked shortcut, setup process running again , @ end our application launched. not yesterday before added custom action create database. didn't recreate shortcut in installer. why this?

msi comes auto-repair feature checks whether components installed msi still present when launch application using shortcut.

in case, 1 (or more) components have been removed installer launched again repair installation.

to prevent auto-repair running either

  • make sure no file, registry setting or other installed component removed

or

  • don't set key path components. prevent msi checking specific components

from other questions seems msi has been created visual studio setup , deployment project. unfortunately, there no option modify key path within visual studio. have following options:

  • modify msi manually using orca (this not option because manual step)
  • write script e.g. using vbscript patch msi file
  • move more advanced install system gives more control such wix or nsis

Comments

Popular posts from this blog

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -

openssl - Load PKCS#8 binary key into Ruby -