Search

Windows Installer dialog runs and errors when building a Setup project by David M. Kean

Closed
as Other Help for as Other

6
0
Sign in
to vote
Type: Bug
ID: 113155
Opened: 12/8/2005 12:45:40 AM
Access Restriction: Public
4
Workaround(s)
7
User(s) can reproduce this bug
Windows Installer dialog runs and displays an error when building a Setup project.

The error display is related to not having enough permissions to right to a directory (see below). The question is:

1. Why does it need to run the Windows Installer dialogs when I build a setup project?
2. What directory does it need access to (it doesn't state)?
3. What is with the two very unfriendly error messages?

Please note that I am only in the Users user group, and do not have Admin nor Power Users rights.
Details (expand)
Product Language
English
Version
Visual Studio 2005
Category
Deployment
Operating System
Windows XP Professional
Operating System Language
English
Steps to Reproduce
1. Install Visual Studio 2005 Pro
2. Install SQL Server 2005 Developer
3. Create a new Setup project
4. In Solution Explorer, right-click the Setup node and select Build
Actual Results
Windows Installer dialogs starts up and then displays the following 2 errors 3 times in a row:

First Message:
0:Watson 1:1304 2:StreamSupportFiles
3:streamBinaryToDisk 4:5
5:t:\yukon\sql\setup\darwin\sqlcastub\streamca.cpp
6:238 7:sqlcastub 8:sqlrun.msi

Second Message:
Error writing to file: Access is denied
Verify that you have access to that directory
Expected Results
For the setup project to be built without the error.
File Attachments
0 attachments
Sign in to post a comment.
Posted by Daniel Vaughan on 12/2/2011 at 4:24 AM
I can confirm that after running the orca installer downloaded from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/orca_exe.asp
the Windows Installer dialog is no longer displayed when I rebuild the setup project.
I am using Visual Studio 2010 Ultimate.

-Daniel Vaughan
Client App Dev MVP
Posted by Chris J. Breisch on 9/1/2010 at 7:42 AM
Same situation as Don Andre. Visual Studio 2010. The app in question uses SQL Compact 3.5. I tried downloading the latest Installer SDK for Win 7 and .NET Framework 4. Didn't help.

Running VS as Administrator enabled the installer to run, however it still runs every time I build the installer. Not fun.
Posted by Don Andre on 8/31/2010 at 3:25 PM
I have the same problem and none of the workarounds worked, the last one is not applicable as the group does not exist on my machine. In my case it's VS2010 and SQL Express 2008 R2.
Posted by Alexei Adadurov on 1/17/2008 at 4:14 AM
There is a direct link to Orca download: http://astebner.sts.winisp.net/Tools/Orca.zip (taken from this page: http://blogs.msdn.com/astebner/archive/2004/07/12/180792.aspx).
Posted by Microsoft on 3/24/2006 at 10:22 AM
This appears to be an issue with the SQL install. Specifically, there seems to be a problem with the install mergemod.dll. Installing a later version of mergemod.dll seems to fix the issue. You can install a later mergemod.dll by installing Orca: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/orca_exe.asp.
Posted by Microsoft on 12/9/2005 at 4:38 PM
Thank you for submitting this issue. I'm passing it to the feature team to take a look.

-Shamez
Posted by David M. Kean on 12/8/2005 at 12:51 AM
A bit more testing I found that if I ran as an Administrator (but under the same user name) and built the setup project, the Windows Installer dialog is not display and the project builds without error.

However, once I change my user back to only having Users rights, the Windows Installer dialog is displayed.
Sign in to post a workaround.
Posted by David M. Kean on 2/9/2006 at 8:21 AM
This problem occurred VS 2005 on a PC that already had VS 2003 installed. Both failed to build deployment projects, but with different error messages. After following the steps in http://support.microsoft.com/kb/835457/en-us both worked as expected

At a command prompt type

Regsvr32.exe %Windir%\System32\Ole32.dll
Posted by David M. Kean on 2/9/2006 at 1:45 PM
Get error message dialogs from SQL Server 2005 when trying to build a Web Setup Pacakge. Happens when running as a USER not ADMIN. Used SysInternals FileMon to discover which file the user was being denied access.

1. Give the USER read/execute permissions to the following file.

C:\Program Files\Microsoft SQL Server\90\NotificationServices\9.0.242\Bin\microsoft.sqlserver.notificationservices.rules.dll
Posted by Alexei Adadurov on 1/17/2008 at 4:25 AM
None of the previous workarounds worked for me, so I had to download and install Orca.
By the way, there is a direct link to Orca download: http://astebner.sts.winisp.net/Tools/Orca.zip (taken from this page: http://blogs.msdn.com/astebner/archive/2004/07/12/180792.aspx).
Posted by Paul Norvelle on 12/15/2009 at 1:27 PM
Orca did not work for me.

I followed the workaround on http://www.bumblebee.com.sg/ref/vs2008build.php

     Add your user to the group SQLServer2005NotificationServicesUser$COMPUTERNAME