Problem In Sql Scripts - Advanced Installer Community

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!

kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

Problem In Sql Scripts

Hi,

While installing iam changing the MSDE Password.

sp_password @old = 'sa', @new = '0001', @loginame = 'sa'

iam replacing the 0001 with the Masked Edit Property which user can type any 4 digits.

the MSDE password is getting changed.

While Unistalling iam getting the problem.

sp_password @old = '0001', @new = 'sa', @loginame = 'sa'

iam replacing the 0001 with the Masked Edit Property which user can type any 4 digits.

iam getting the error. The password is not getting changed to "sa".

Thanks
Kiran
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This happens because during the uninstall process the property used to store the password is not set. When installing, this property is set by the dialog with the Masked Edit, but during uninstall the property is empty, therefore the original password cannot be restored.

There are two solutions for your problem:

1) you can use a dialog which asks for the changed password during uninstall in order to set the property you use for the password

2) you can store the changed password in the registry (it is recommended that you encrypt this value) and you access this value during the uninstall

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”