Shell function and UAC

Illegal function call and Shell command.

Hi,

I have an application that is currently installed by forwarding users a button in an email, that also contains an executable.

In the past, we used the Shell command to launch the executable, so that it happens at a specific point in the script.

Our WINS7 pc is coming with Notes 8.5.1.

If you set UAC to the ‘default’ level, the Shell function gives Illegal function call.

I read on the forum here two posts regarding, one of them: http://www-10.lotus.com/ldd/nd85forum.nsf/5f27803bba85d8e285256bf10054620d/507aa7826ac130ab85257766005856e5?OpenDocument&Highlight=0,Shell

Advised that the affected person could work around the issue by setting UAC to the lowest level.

To me this is not an acceptable solution, as our users are not familar with this setting, and it prevents us from automating the install which is the next step in any case.

The second post, I don’t have a link for, advised that a workaround is to use the @Command(“Execute”;“FileName”)

But the LotusScript Evaluate function does not allow @Commands.

Surely there needs to be a way of running a file in the operating system that works,

with UAC at Default Level (or ideally at highest level), or a workaround such as being able to run the execute command from LotusScript?

Subject: did you check the ECL settings of the person who sent/signed the button?

Normally the user will be prompted to “allow” this activity by a nasty ECL warning pop-up. Are you sure the recipient isn’t denying it and that fails the script in the button?

Glenn Johnson

http://www.pembrian.com (Check out Agent Runner, run multiple agents at once on Windows,Linux, and MacOS)

Subject: Yes…

Yes, I’m sure…We were connected to the user’s PC, and no Lotus Notes ECL box or other windows box appeared. It just said that we could not create the file.

Subject: would you be interested in using the CreateProcess win32 function?

You could use CreateProcess to spawn your application. If you’re interested I will dig up some code and post it here.

Glenn Johnson

http://www.pembrian.com (Check out Agent Runner, run multiple agents at once on Windows,Linux, and MacOS)

Subject: Yes I could give it a go

Maybe it will help get round the restrictions of Windows 7.