>But when I try to uninstall I get the message:
>Product: Testing setups -- Error 1321. The Installer has insufficient
privileges to modify this file: J:\TestingSetups\MsSql\TestDb.mdf.
<snip>
>Does anyone know a way to get around this?

Have you looked at a full log of the uninstall process?
Sounds to me like your database application still has handles open to
your file when your installer tries to remove it.

>I think this is because wix first checks the privileges  for the .mdf
file, which the database is holding and refuses to go on.

WiX does nothing to your database or anything else on your machine
during uninstall. The Windows Installer however does plenty. MSDN is a
good place to start learning about the technologies created by Microsoft
e.g http://msdn.microsoft.com/en-us/library/aa372835(VS.85).aspx


Palbinder Sandher 
Software Deployment and IT Administrator 

T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 
http://www.iesve.com 

**Design, Simulate + Innovate with the <Virtual Environment>**

Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP

Email Disclaimer


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bas Jansen
Sent: 01 September 2008 16:03
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Uninstall database gives error 1321

I have written a installation for a database. The installation does the
following things.
- Create a folder
- Copy an .mdf file into it
- Run some attach scripts

So far so good, the database is attached.

But now the uninstall. This does the following.
- Run a drop script.

But when I try to uninstall I get the message:
Product: Testing setups -- Error 1321. The Installer has insufficient
privileges to modify this file: J:\TestingSetups\MsSql\TestDb.mdf.

I think this is because wix first checks the privileges  for the .mdf
file, which the database is holding and refuses to go on.
Does anyone know a way to get around this?

Bas
------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge Build the coolest Linux based applications with Moblin SDK &
win great prizes Grand prize is a trip for two to an Open Source event
anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to