cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jrahma
Level 6

auto unisntall and install

how can i do all the following without promting the user for any thing so everything will start and be completed once the user lunch the setup.exe file?

[LIST=1]
  • Unistall the previous version of the file excep the parmanent registry entries.
  • Install the current version.
  • Lunch the new version
  • Labels (1)
    0 Kudos
    (4) Replies
    ChandanOmkar
    Level 8

    What is your project type?
    You can achieve this using installscript using silent uninstall and then install
    0 Kudos
    jrahma
    Level 6

    My setup project is a Basic MSI project
    0 Kudos
    ChandanOmkar
    Level 8

    Create a function for silent uninstall in installscript and call it in in custom action.
    use

    nResult = LaunchAppAndWait("Msiexec.exe", "/x {} /qn", LAAW_OPTION_WAIT);

    for silent uninstall.
    0 Kudos
    jrahma
    Level 6

    any step-by-step?
    0 Kudos