Red Gate forums :: View topic - Trouble using MSI Custom Action to call SQL Package exe
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Packager Previous Versions
SQL Packager Previous Versions forum

Trouble using MSI Custom Action to call SQL Package exe

Search in SQL Packager Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
dbaer



Joined: 19 May 2008
Posts: 1

PostPosted: Mon May 19, 2008 6:44 pm    Post subject: Trouble using MSI Custom Action to call SQL Package exe Reply with quote

I am using Wise Installer Editor. I create a custom action to call sqlpackage executable. I get the following error.

Error:
File or assembly name xxx.exe, or one of its dependencies, was not found.

I can run this executable from the command line and it works fine.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6581

PostPosted: Tue May 20, 2008 9:15 am    Post subject: Reply with quote

Hi,

The problem could be that the MSI is saving the package to a temporary file and running it from there. Packages can't be renamed because the resources inside will no longer be named the same as the executable. There is a workaround to change the Packager code template so that the name of the resource is generated dynamically based on the assembly name. Please see here.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group