"External Source" warning dialog when open in batch mode

Let us know if anything goes wrong with our baby :)
Post Reply
kujo_adal
Posts: 6
Joined: Mon May 28, 2012 11:55 pm

"External Source" warning dialog when open in batch mode

Post by kujo_adal » Sun Jul 01, 2012 7:33 pm

I am launching Helium with the following example command line:
"....\Helium Scraper.exe" "C:\Users\me\Desktop\project.hsp?--auto-close=true&--starting-url=http://google.com&param1=value2&param2=value2"
And then the following dialog pops up (also attached as image):
The project you are opening seems to come from an external source. It could contain malicious code that could compromise your private information.
Would you like to continue opening this project?
I created project.hsp on my own computer, so I don't know why it says it comes from an external source.

Me & most other people looking to run Helium in batch/command-line mode, are looking to have the program function automatically, without having to mouse-click alerts and dialog boxes.
I am now going to investigate using a keyboard-press emulator to press the enter key to get past this dialog, but is a very hacky way to do this. :(

Can this dialog be made to not show up when in batch/command-line mode?
Attachments
external_source.png
This dialog prevents the automation from proceeding until the Yes button is pressed :(
external_source.png (7.61 KiB) Viewed 15771 times

webmaster
Site Admin
Posts: 521
Joined: Mon Dec 06, 2010 8:39 am
Contact:

Re: "External Source" warning dialog when open in batch mode

Post by webmaster » Sun Jul 01, 2012 7:48 pm

This seems like a bug. Can you try saving your project and then opening it by double clicking it and see if you get the warning?
Juan Soldi
The Helium Scraper Team

kujo_adal
Posts: 6
Joined: Mon May 28, 2012 11:55 pm

Re: "External Source" warning dialog when open in batch mode

Post by kujo_adal » Sun Jul 01, 2012 11:52 pm

When I open it by double clicking it I do not get the warning.

When launching via command line, I do get the warning.

webmaster
Site Admin
Posts: 521
Joined: Mon Dec 06, 2010 8:39 am
Contact:

Re: "External Source" warning dialog when open in batch mode

Post by webmaster » Tue Jul 03, 2012 1:59 am

Hi,

I'm pretty sure the problem here is that you're using the path to the .exe file instead of using the .appref-ms one. Some configuration files might not being properly read when the .exe is launched directly.
Juan Soldi
The Helium Scraper Team

kujo_adal
Posts: 6
Joined: Mon May 28, 2012 11:55 pm

Re: "External Source" warning dialog when open in batch mode

Post by kujo_adal » Tue Jul 03, 2012 2:46 am

I was indeed using the exe by itself.

Using appref-ms fixes the issue. I can use appref-ms for now.



Other users have reported that appref-ms's occasional updates break their automation, so that's why I was considering just using the EXE itself.

Post Reply