Archive: Uninstaller bahaving completely different depending the install settings.. how?


Uninstaller bahaving completely different depending the install settings.. how?
hey.

I'm trying to make several installers in one.
To explain: I have a Winamp3 component which is installed in a dir that has changed in alot of the Wa3 builds.
Both the path, and the filenames of the files I install (to clarify here, it's the Poppler Replacement I'm talking about, so it's installed in the Pledit folder, somewhere in Wacs/xml...... :)).

I'm now trying to make the installer have support for any Winamp3 build by, depending the section choosed, installing to different dirs and installing different files.

so far so good, but the installer is where things get interesting, or not.

I cannot make the uninstaller change it's workingdir and the files it should remove depending the install section selected..

I could probably use the registry for this, but I then have to write huge amount of "if... then.." code.
like: if path=blablabla then uninstall this...

There gotta be a better way to do this..??

-Plague


maybe if you put the components installed in an "ini" file, then
on "un.onInit" read those components...


hmmm, I think I'd rather go with the registry then..
Isn't it possible to somehow transfer the data from the section selected to the uninstall section?

-Plague


well, it's not easy... you can use the function .onSelChange...


.onSelChange is not useful. It's better to check the situation during the installation.


ok, we'll see how it goes.
I might do the whole thing in another way and if so, then I won't need this anyway..
It all depends a little if what I have planned will work or not..

Thanks anyway.

-Plague