We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

johnds
Posts: 5
Joined: Thu Dec 18, 2014 11:31 am

Database UNINSTALL...

Hi,

I have a Database specific AI project, the Database and tables etc get created just fine.

The actual DB name is determined at runtime, by prompting the user to enter a name, which then gets prepended to something like '_DB', which gets stored in an INSTALL PARAMETER (DATABASE_NAME). This parameter gets used in the Predefined Connection Database name setting. So you could end up with a value like "JoeBloggs_DB".

So, my question is this: How can I uninstall the database (via an inline script), using that database name that was previously obtained from the Installation dialog? I know how to write the script, I just don't know if DATABASE_NAME is preserved, or what?

Thanks
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Database UNINSTALL...

Hi,

In order to preserve the [DATABASE_NAME] property, you can edit it in the "Install Parameters" page and check the "Set persistent property" option for it.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”