PDA

View Full Version : Pendrive Problem



NewsArchive
04-28-2011, 12:40 AM
Hi,
When installing in a PenDrive I copy the Autorun.inf to allow to autorun
my app.
In some Penderives this is not possible, may be because some permitions.
The installer messages an error and it stops.
How can I avoid it?
How can I trap this error after the Install directive and show a message
indicating the autorun will not work an the user will have to run the
exe manually?

Thanks
Alberto

NewsArchive
04-28-2011, 12:41 AM
Alberto,

> When installing in a PenDrive I copy the Autorun.inf to allow to autorun
> my app.
> In some Penderives this is not possible, may be because some permitions.
> The installer messages an error and it stops.
> How can I avoid it?
> How can I trap this error after the Install directive and show a message
> indicating the autorun will not work an the user will have to run the exe
> manually?

What message does the installer display? The installer does not display any
error if a program can't be executed.

Friedrich

NewsArchive
04-29-2011, 01:35 AM
Friedrich,
The message is when the installer tries to install or replace the
Autorun.inf
TIA

Alberto Michelis

NewsArchive
04-29-2011, 01:36 AM
Alberto,

> The message is when the installer tries to install or replace the
> Autorun.inf

But what message do you get?

As I understand it, the drive is not "writable", right? So I would suggest
to use the "If File/Folder..." script function and see if the drive and/or
file is writable ('File is not writable' or 'Folder is not writable'
conditions). If it is not writable, act accordingly (e.g. display a message
and abort the install application).

Does this help?

Friedrich

NewsArchive
04-29-2011, 01:36 AM
> In some Penderives this is not possible, may be because some permitions.
> The installer messages an error and it stops.

Hello Alberto

Some viruses create an autorun.inf hidden and read-only and you cannot
do anything to this file even if you have full permissions. Likewise,
some antivirus packages will create a dummy autorun.inf also preventing
deletion/editing in order to close this virus vector.

Regards

Daan