How can I stop Windows Installer "repairing" my application?

I have an application that installs SQL scripts with it. After running the SQL scripts, I want them to be deleted (along with other aspects of the installation) so users cannot work out the structure of the database.

However, after deleting them and running the application, Windows Installer comes up with the message

"Please wait while Windows Installer configures (my app)"

After the message, all the files I deleted are reinstated. How can I prevent Windows Installer reinstating these files?
theskintmanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RemcovCCommented:
This autorepair is most likely triggered by an advertised shortcut, if you replace the current shortcut of the application by one which is made by hand (pointing to the executable) it should stop triggering the autoreapair.
0
theskintmanAuthor Commented:
I'm triggering this just running the executable from its directory, not using a shortcut at all - it's just Windows Installer interrupting at the point the application is executed.
0
RemcovCCommented:
Ok other option is removing the keyfiles to the files you want to have removed, but that requires some knowledge (more then I have) of MSIs
This is what I know of it,
Keyfiles (at least I think the called that way) are checkpoints which are checked if an application is started an repaired if they are missing or currupt.
When you  use an MSI editor (like installshield admin studio) you can remove the keyfile property from the files you don't want to trigger a repair.

Make sure you have a backup of the original MSI, and remove the installation completely before installing the adjusted MSI.

Just to make clear.
My knowledge of MSI's is limited, so I'm not sure if this works ! and I have no way to test this at my current location.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tanmoy1984Commented:
Try this one ...it may help u
Download Windows installer cleanup..
http://support.microsoft.com/default.aspx?scid=kb;en-us;290301

Steps:
Install the application
Run the application (From start>Programs>Windows installer cleanup)
Select All & clean all ..
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.