Search found 50 matches

by StanDan
Tue Jul 30, 2013 5:59 pm
Forum: Applications - Feedback and Discussion
Topic: Bytessence Install Maker 5.40 - (09Jan2013) - new release
Replies: 194
Views: 117277

Re: Bytessence Install Maker 5.40 - (09Jan2013) - new releas

Hi StanDan,

Sorry for the slow answer. Currently, there aren't any command-line switches for silent uninstallation. I hope to be able to add this feature in one of the next versions. The only thing close to uninstalling previous versions of the program is by using the automatic detection for ...
by StanDan
Mon Jun 03, 2013 3:29 am
Forum: Applications - Feedback and Discussion
Topic: Bytessence Install Maker 5.40 - (09Jan2013) - new release
Replies: 194
Views: 117277

Silent uninstaller?

I was wondering, I can't seem to find anywhere in the docs that show command line options for Uninst0.exe, are there any? It seems like arguments cause the program to end abruptly.

I'd like to auto-uninstall the previous version by looking up the installed path and then calling Unist0.exe. Does ...
by StanDan
Thu Oct 04, 2012 10:06 pm
Forum: Coding Questions
Topic: Capturing program output
Replies: 4
Views: 1069

Re: Capturing program output

Finally got it, it was missing OpenConsole(), which is required for it to work but there's no warning about it being needed.

Code: Select all

str.s = "Whooolly Booly"
OpenConsole()
WriteConsoleData(@str, Len(str))
This works. Thank you guys!
by StanDan
Thu Oct 04, 2012 9:37 pm
Forum: Coding Questions
Topic: Capturing program output
Replies: 4
Views: 1069

Re: Capturing program output

Yikes, still doesn't work.


str.s = "Whooolly Booly"

WriteConsoleData(@str, Len(str))


With the above code compiled with either Windows or Console set, I get the following.


C:\Users\jonathan\dev\Citation>perl -le "print `build\test.exe`"


C:\Users\jonathan\dev\Citation>ruby -e "puts `build ...
by StanDan
Thu Oct 04, 2012 8:52 pm
Forum: Coding Questions
Topic: Capturing program output
Replies: 4
Views: 1069

Re: Capturing program output

Thank you. I'm not sure how I missed that.
by StanDan
Thu Oct 04, 2012 7:53 pm
Forum: Coding Questions
Topic: Capturing program output
Replies: 4
Views: 1069

Capturing program output

I'm doing something that you would think would be blindingly simple, yet I'm tripping all over myself finding an answer. How can I pop up a window asking a user for a value and then capture that from STDOUT? This works on Linux and Mac but not Windows.


OpenConsole()
If OpenWindow(0, 100,100,200 ...
by StanDan
Sun Apr 01, 2012 5:02 pm
Forum: Applications - Feedback and Discussion
Topic: Bytessence Install Maker 5.40 - (09Jan2013) - new release
Replies: 194
Views: 117277

Re: Bytessence InstallMaker 5.31 - (31Dec2011) - bugfix rele

IdeasVacuum: Yes! This was the way to get it done.

For anyone who's trying to do this in the future here's how:

1. Add an advanced task to the installer of type "Run Program"
2. Path to the program to open: <system>\schtasks.exe
3. Command line parameters: /create /tn "TaskName" /tr "\"<Component ...
by StanDan
Sun Apr 01, 2012 2:58 am
Forum: Applications - Feedback and Discussion
Topic: Bytessence Install Maker 5.40 - (09Jan2013) - new release
Replies: 194
Views: 117277

Re: Bytessence InstallMaker 5.31 - (31Dec2011) - bugfix rele

Hi Everyone!

How do I add a scheduled task from an installer? I (mistakenly) posted the full question in Coding Questions and was kindly directed here. Basically, how do I add a scheduled task from an installer? It seems almost an impossible task, I've looked at Win32 API and it's a terrible mess ...
by StanDan
Sun Apr 01, 2012 12:44 am
Forum: Coding Questions
Topic: Bytessence Installmaker add Scheduled Task
Replies: 1
Views: 1619

Bytessence Installmaker add Scheduled Task

Aaahg! I've been pulling my hair out for the past two days over this. I feel a bit like I'm Frodo carrying the One Ring to Mount Doom, only I happen to be on that one bad day where they were lost in the Dead Marshes. And I'm naked. Or... something... It's pretty bad. :D

I've finally solved my issue ...
by StanDan
Sat Mar 31, 2012 11:52 pm
Forum: Coding Questions
Topic: Automatic Process Manager
Replies: 8
Views: 2346

Re: Automatic Process Manager

Thanks guys for the help, I decided to go with the option of letting windows do my task scheduling. Not sure if it isn't easier to just write it myself though, lol. Windows is being a total jerkface about adding a scheduled task from a Byteessentials Installer script. I may just end up writing it ...
by StanDan
Thu Mar 29, 2012 5:49 pm
Forum: Coding Questions
Topic: Automatic Process Manager
Replies: 8
Views: 2346

Re: Automatic Process Manager

I just realized that I might be going about this wrong, it turns out that scheduled tasks have this option already. So this just got a LOT easier. lol

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/agent_idle_time.mspx?mfr=true

I guess this is why nobody bothered ...
by StanDan
Thu Mar 29, 2012 5:19 pm
Forum: Coding Questions
Topic: Automatic Process Manager
Replies: 8
Views: 2346

Re: Automatic Process Manager

Jesper: Thank you! That is an interesting idea. I'm more concerned in having my program run like a screen saver. In other words, I would like it to only run while the computer is idle. Something like this:


If ComputerIsIdle()
CheckForWork()
Else
Delay(5000)
EndIf


How would I check to see if ...
by StanDan
Thu Mar 29, 2012 3:26 pm
Forum: Coding Questions
Topic: Automatic Process Manager
Replies: 8
Views: 2346

Automatic Process Manager

Hey guys,

Long story short, I need my PB app to run only while the computer is idle. Currently it runs as a scheduled task, every 15 minutes or so it checks for some work on the server and if it has some then it churns away at it. Any idea how to do this? I was thinking maybe read the process list ...
by StanDan
Mon Jan 19, 2009 6:45 pm
Forum: Linux
Topic: [4.30 beta 5] WebGadget on Ubuntu 8.10
Replies: 3
Views: 2650

Simpler Explanation

The exact solution that worked for me was to type the following into a Terminal.


sudo su -
cd /usr/lib
ln -s libgtkembedmoz.so.0d libgtkembedmoz.so


After this the WebGadget.pb example worked without modification. I know that you've probably already checked for this, but are you sure your code ...
by StanDan
Sun Jan 18, 2009 12:26 am
Forum: Linux
Topic: SerialPort library
Replies: 1
Views: 1762

Apparently

I'm not sure what you're trying to do but the example in /usr/share/purebasic/examples/sources/SerialPort.pb reports "Serial Opened with Success" when I run it (on Ubuntu 8.10.) Also, it says under "OS" on the OpenSerialPort() section of the manual that it supports "All".

I'm assuming you don't ...