PDA

View Full Version : Unable to create a new uninstall EXE or LOG file



NewsArchive
05-11-2011, 02:21 AM
Hi,

It's me again..... I'm probably fast becoming a real pest.

The installer script I am working on refuses to create a new uninstall
EXE or LOG file that I have ask for in my setup.

I have attached a screenshot of my script setup window, a display
message just prior to the CREATE function in the code verifying the
names of the files to be created and a display message just after the
CREATE attempt indicating the error code of -1.

When all is said and done after the file is unzipped into the folder
there will possibly be other uninstall LOG files. In the case I tested
there are two:

Uninst.exe
Uninst.log

Uninst_2.6.0.0.exe
Uninst_2.6.0.0.log

I am attempting to create a new one called Uninst_BU_2.6.0.0 but the
CREATE function is clearly failing. I have checked the "Overwrite" box
as you can see.

What am I missing or doing incorrectly?

Thanks.....

--
*Regards*,

Lee
www.cya2day.com
CYA - Don't Leave Home Without One

NewsArchive
05-11-2011, 02:23 AM
What's in your [UNINSTALL_LOG] compiler variable?

If I did what's in your screen shot with what's in a default script, I'd be
trying to write to
%_SB_INSTALLDIR%\%_SB_INSTALLDIR%\Uninst_[PRODUCTNAME].log

What happens if you try
%_SB_INSTALLDIR%\Uninst_BU_2.6.0.0.log

Jane Fleming

NewsArchive
05-11-2011, 02:23 AM
Mmmmm.... That explains why it started working.<g>
As they say - Something about the forest.

While waiting for a reply I had already done pretty much what you have
suggested and it worked.

Overlooked the fact that the install path was already populated in
[UNINSTALL] and [UNINSTALL_LOG]

Thanks a bunch Jane - I sure hope this is the last time I will have to
bother everyone.

*Regards*,

Lee
www.cya2day.com
CYA - Don't Leave Home Without One