Red Gate forums :: View topic - Packager Code Template - question
Return to www.red-gate.com RSS Feed Available

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

Packager Code Template - question

Search in SQL Toolkit Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
TheBatA



Joined: 25 Sep 2007
Posts: 12
Location: Belgrade

PostPosted: Wed Oct 24, 2007 6:23 pm    Post subject: Packager Code Template - question Reply with quote

Hi!

I am developing an application that would create executable package from client's database on clients computer.
In order to do that, I have to distribute packager code template also, but I wouldn't like to distribute this template unprotected, but I'd like to hide it from user. I don't want user to be able to make changes to this template.
Is there any way to do this, can I add this project into application I am developing or something like that?

Thanks!
Back to top
View user's profile Send private message
david connell



Joined: 21 Nov 2005
Posts: 207

PostPosted: Thu Oct 25, 2007 9:41 am    Post subject: Reply with quote

Hi there,
I think that you are on the right lines.
You could store the template in your exe (as resources etc), and then copy it out into a temp folder when your program starts up.
Then when calling PackagerEngine.PackagerEngine(....) just need to pass in the temp folder where you copied the template into.
When your program shuts down you will need to clear down the temp. folder.
Hope that helps.
David Connell
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