PDA

View Full Version : INI-File left after Uninstall



NewsArchive
12-05-2001, 01:00 AM
Hello,

I install an INI-File during my setup. Some values of the File are changed
in the OnMoved-Event. If I deinstall the Program the INI-File ist not
deleted. Only the values that not have been changed are deleted out of the
file, but i want to delete the file itself. What can I do? I'm using
Installshield 6.12.

thx in advance
Frank Müllers

NewsArchive
12-05-2001, 01:00 AM
I think your best bet is to use DeleteFile.

HTH
Kathy

"Frank Müllers" <frankm@mma.de> wrote in message
news:3c0e3fc3@news.installshield.com...
> Hello,
>
> I install an INI-File during my setup. Some values of the File are changed
> in the OnMoved-Event. If I deinstall the Program the INI-File ist not
> deleted. Only the values that not have been changed are deleted out of the
> file, but i want to delete the file itself. What can I do? I'm using
> Installshield 6.12.
>
> thx in advance
> Frank Müllers
>
>

NewsArchive
12-06-2001, 01:00 AM
I tried to use DeleteFile in different events during deinstallation. The
file is deleted correctly (checked return value + file disappears in
explorer). BUT after the the complete deinstallation process the file is
created again with 0kb!!?? What do I do wrong?

thx
Frank

"Kathy Morey" <KMorey@SERmacrosoft.com> schrieb im Newsbeitrag
news:3c0e898e@news.installshield.com...
> I think your best bet is to use DeleteFile.
>
> HTH
> Kathy
>
> "Frank Müllers" <frankm@mma.de> wrote in message
> news:3c0e3fc3@news.installshield.com...
> > Hello,
> >
> > I install an INI-File during my setup. Some values of the File are
changed
> > in the OnMoved-Event. If I deinstall the Program the INI-File ist not
> > deleted. Only the values that not have been changed are deleted out of
the
> > file, but i want to delete the file itself. What can I do? I'm using
> > Installshield 6.12.
> >
> > thx in advance
> > Frank Müllers
> >
> >
>
>

NewsArchive
12-06-2001, 01:00 AM
Have you tried tracing through your code to see if you can find anywhere
it's getting created? Maybe a write command in an event that should be
surrounded by

if !MAINTENANCE then

endif; ??

Or you could try using DeleteFile in either the
OnFirstUIAfter/OnMaintUIAfter events or in OnMoved or even OnEnd.

HTH
Kathy

"Frank Müllers" <frankm@mma.de> wrote in message
news:3c0f51a5@news.installshield.com...
> I tried to use DeleteFile in different events during deinstallation. The
> file is deleted correctly (checked return value + file disappears in
> explorer). BUT after the the complete deinstallation process the file is
> created again with 0kb!!?? What do I do wrong?
>
> thx
> Frank
>
> "Kathy Morey" <KMorey@SERmacrosoft.com> schrieb im Newsbeitrag
> news:3c0e898e@news.installshield.com...
> > I think your best bet is to use DeleteFile.
> >
> > HTH
> > Kathy
> >
> > "Frank Müllers" <frankm@mma.de> wrote in message
> > news:3c0e3fc3@news.installshield.com...
> > > Hello,
> > >
> > > I install an INI-File during my setup. Some values of the File are
> changed
> > > in the OnMoved-Event. If I deinstall the Program the INI-File ist not
> > > deleted. Only the values that not have been changed are deleted out of
> the
> > > file, but i want to delete the file itself. What can I do? I'm using
> > > Installshield 6.12.
> > >
> > > thx in advance
> > > Frank Müllers
> > >
> > >
> >
> >
>
>

NewsArchive
12-06-2001, 01:00 AM
I tried to use DeleteFile in different events during deinstallation. The
file is deleted correctly (checked return value + file disappears in
explorer). BUT after the the complete deinstallation process the file is
created again with 0kb!!?? What do I do wrong?

thx
Frank

"Kathy Morey" <KMorey@SERmacrosoft.com> schrieb im Newsbeitrag
news:3c0e898e@news.installshield.com...
> I think your best bet is to use DeleteFile.
>
> HTH
> Kathy
>
> "Frank Müllers" <frankm@mma.de> wrote in message
> news:3c0e3fc3@news.installshield.com...
> > Hello,
> >
> > I install an INI-File during my setup. Some values of the File are
changed
> > in the OnMoved-Event. If I deinstall the Program the INI-File ist not
> > deleted. Only the values that not have been changed are deleted out of
the
> > file, but i want to delete the file itself. What can I do? I'm using
> > Installshield 6.12.
> >
> > thx in advance
> > Frank Müllers
> >
> >
>
>

NewsArchive
12-06-2001, 01:00 AM
Have you tried tracing through your code to see if you can find anywhere
it's getting created? Maybe a write command in an event that should be
surrounded by

if !MAINTENANCE then

endif; ??

Or you could try using DeleteFile in either the
OnFirstUIAfter/OnMaintUIAfter events or in OnMoved or even OnEnd.

HTH
Kathy

"Frank Müllers" <frankm@mma.de> wrote in message
news:3c0f51a5@news.installshield.com...
> I tried to use DeleteFile in different events during deinstallation. The
> file is deleted correctly (checked return value + file disappears in
> explorer). BUT after the the complete deinstallation process the file is
> created again with 0kb!!?? What do I do wrong?
>
> thx
> Frank
>
> "Kathy Morey" <KMorey@SERmacrosoft.com> schrieb im Newsbeitrag
> news:3c0e898e@news.installshield.com...
> > I think your best bet is to use DeleteFile.
> >
> > HTH
> > Kathy
> >
> > "Frank Müllers" <frankm@mma.de> wrote in message
> > news:3c0e3fc3@news.installshield.com...
> > > Hello,
> > >
> > > I install an INI-File during my setup. Some values of the File are
> changed
> > > in the OnMoved-Event. If I deinstall the Program the INI-File ist not
> > > deleted. Only the values that not have been changed are deleted out of
> the
> > > file, but i want to delete the file itself. What can I do? I'm using
> > > Installshield 6.12.
> > >
> > > thx in advance
> > > Frank Müllers
> > >
> > >
> >
> >
>
>