Menu

#1148 WiXSqlExtension

v3.0
closed
2012-09-15
2008-03-19
Wixer
No

I am using WiX 3.0.29.25, I am suspecting that the custom actions in WiXSqlExtension: CreateDatabase, DropDatabase, ExecuteSQLStrings and RollbackExecuteStrings are not getting deferred by default. When I attempt to uninstall the product from Vista with UAC turned on, the installer complains about not having permissions to remove the mdf specifically. I attempted the uninstall from an elevated command prompt and the uninstall completed successfully. Is there a solution to this?
Jacob

Response:
---------- Forwarded message ----------
From: Heath Stewart clubstew@gmail.com
Date: Wed, Mar 19, 2008 at 2:42 AM
Subject: Re: [WiX-users] WiXSqlExtension issue on Vista with UAC
To: Sajo Jacob spjacob@gmail.com
Cc: "wix-users@lists.sourceforge.net" wix-users@lists.sourceforge.net

Looks like the custom actions aren't attributed with Impersonate="no".
Please file a bug on http://sf.net/projects/wix. Also, that is an older
WiX version. When fixed you'll need to download updates from
http://wix.sf.net/releases.

Discussion

  • Bob Arnson

    Bob Arnson - 2008-03-22

    Logged In: YES
    user_id=26581
    Originator: NO

    Which SQL server are you using? The general case is that the server itself has the permissions needed to manipulate the file system.

     
  • Rob Mensching

    Rob Mensching - 2008-05-02

    Logged In: YES
    user_id=991639
    Originator: NO

    Those CustomActions are impersonated because you want to connect to SQL as the user doing the install not as the local machine. I have installs that drop dataases and such as long as the user has permissions do so in SQL. Does the user doing the uninstall have permission to drop databases and such?

     
MongoDB Logo MongoDB