Red Gate forums :: View topic - Add new screen in SQL Packager installer
Return to www.red-gate.com RSS Feed Available

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

Add new screen in SQL Packager installer

Search in SQL Packager 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
JackLocke



Joined: 13 Jun 2012
Posts: 17

PostPosted: Wed Jun 13, 2012 9:02 pm    Post subject: Add new screen in SQL Packager installer Reply with quote

Hi All,
I really doubt that it is possible but I am really interested to find answer ... is it possible to add our own screen (or say setup step) in C# project created by SQL Packager ?

Thanks,
Jack
Back to top
View user's profile Send private message
Manfred.Castro



Joined: 23 Apr 2012
Posts: 205

PostPosted: Fri Jun 15, 2012 12:08 am    Post subject: Reply with quote

Yes you can.

The C# project template is provided by Red Gate as the default structure for a SQL package. The SQL Packager tool will retrieve the project located in the '\Red Gate SQL Bundle\SQL Packager Code Templates\C#' directory and it will use it to create a package executable or a C# project. The C# project generated by SQL Packager will have the source code from the C# templates plus resource files that will store the SQL script. The customer can customize the C# template project, so it can include the company logo, company information, etc. There is complete freedom to modify the C# project template. The customer can also take the C# project generated by SQL Packager and take the resource files that store the SQL script plus the necessary code needed to read the script and integrate it in a bigger C# project. In doing that the customer can merge the SQL package code in their own installer executable.
_________________
Manfred Castro
Product Support
Red Gate Software
Back to top
View user's profile Send private message
JackLocke



Joined: 13 Jun 2012
Posts: 17

PostPosted: Fri Jun 15, 2012 2:55 pm    Post subject: Re: Reply with quote

Manfred.Castro wrote:
Yes you can.

The C# project template is provided by Red Gate as the default structure for a SQL package. The SQL Packager tool will retrieve the project located in the '\Red Gate SQL Bundle\SQL Packager Code Templates\C#' directory and it will use it to create a package executable or a C# project. The C# project generated by SQL Packager will have the source code from the C# templates plus resource files that will store the SQL script. The customer can customize the C# template project, so it can include the company logo, company information, etc. There is complete freedom to modify the C# project template. The customer can also take the C# project generated by SQL Packager and take the resource files that store the SQL script plus the necessary code needed to read the script and integrate it in a bigger C# project. In doing that the customer can merge the SQL package code in their own installer executable.


I was able to add company info and other stuff in existing pages. In our case we don't want to do anything fancy with installer. We just wanted to add EULA before "Run Package" screen. So when users run exe, they first see EULA and then run package screen.

Does RedGate has any tutorial available for adding screen SQL Packager ?

On other thought I was thinking to integrate packager with our existing installer and call it using CLI. But I have issues with it too. I have already posted a question about that too in another post http://www.red-gate.com/MessageBoard/viewtopic.php?t=15377 but still waiting for any reply Sad

Thanks,
Jack
Back to top
View user's profile Send private message
Manfred.Castro



Joined: 23 Apr 2012
Posts: 205

PostPosted: Fri Jun 22, 2012 4:12 pm    Post subject: Reply with quote

Unfortunately we do not have any examples of what you wish to accomplish.

If you wants an EULA then you can simply create a new form with the Accept/Decline or whatever, and display it modally with ShowDialog() in the Load() event of the template one - then it'll pop up before the user can do anything else.
_________________
Manfred Castro
Product Support
Red Gate Software
Back to top
View user's profile Send private message
JackLocke



Joined: 13 Jun 2012
Posts: 17

PostPosted: Fri Jun 22, 2012 4:19 pm    Post subject: Re: Reply with quote

Manfred.Castro wrote:
Unfortunately we do not have any examples of what you wish to accomplish.

If you wants an EULA then you can simply create a new form with the Accept/Decline or whatever, and display it modally with ShowDialog() in the Load() event of the template one - then it'll pop up before the user can do anything else.


Actually, after some snooping around application code I was able to include simple EULA form.

Thanks for reply.

Jack
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