PDA

View Full Version : Setup to write infos on a remote text file


Martin_SBT
09-21-2004, 05:22 PM
Hi

I would like to incorporate a screen in my installer with to user input field that would be "User Name" and "Location". I want that when the user has filled in those field and click on the next button, the installer will go write this information to a text file that would reside on my peronnal web page.

-I dont want the user to be able to cancel this process
-I dont want that the user leave the fields empty

Anyone can guide me with some code on how to do that?

thanks in advance


Martin

Brett
09-21-2004, 09:14 PM
Make a php page on your Web site that takes the arguments and then writes them to a text file on the server. Then just use the HTTP.Submit action to send the values to the PHP page.

Martin_SBT
09-22-2004, 06:34 AM
Thanks Brett

I knew the answer would something like that ;)

I dont want to (and have no time to...) learn PHP unfortunately. So i am asking if anybody could help me with that PHP script, i would be more than happy!

Thanks in advance to anyone that may help me :)


Martin

GalacTek
09-22-2004, 12:09 PM
I currently do this with our installs using SF6.. soon to be re-done for SF7. I have a php page on my site. when the user clicks next it it hits that page sends me via email all this info and anything else you want.

Full Name: Shawn Scott Email Address: shawn@galactek.com Version 9 - ECL Current 08-31-2004 ECL Download 09-15-2004 Sentinel Not Found Todays Date 09/20/04 Time 13 33 IP 90.0.0.23 Machine Name Unknown User Shawn Path C:\\MPN OS Info GalacTek GalacTek Ram 1024

95 FALSE 98 FALSE ME FALSE NT3 FALSE NT4 FALSE 2000 TRUE XP FALSE Admin Rights TRUE Path C:\\WINNT
------------------------------------------------------
Date and Time : Mon Sep 20 13:33:36 2004
Architecture : Genuine Intel
Number of CPUs : 2
CPU Type : x86 Family 15 Model 2 Stepping 9
MMX Feature : Present
CPU Speed : 2813.61 (5627.22) Mhz
Operating System: Microsoft Windows 2000
Version : 5.0 Service Pack 4
Computer Name : SHAWN
IP Address : 90.0.0.23
User Name : Shawn
User Domain : LBGX2385

System Memory
----------------------------------------------
Physical Memory : 1024 Mb
Usage : 71 %
Used : 724 Mb
Free : 300 Mb
Paging File : 1694 Mb
Usage : 37 %
Used : 626 Mb
Free : 1068 Mb

Disk Information
----------------------------------------------
Disk C Type: Local Fixed Disk
Usage: 41.73 %
Size: 111.78 Gb
Free: 65.13 Gb
Disk S Type: Network Disk
Usage: 12.05 %
Size: 111.79 Gb
Free: 98.32 Gb
Disk Total
Usage: 26.89 %
Size: 223.57 Gb
Free: 163.45 Gb
------------------------------------------------------

Here is the php script I use called process.php

<?php

// set variables
$email ="shawn@hna-inc.com";
$subject ="ECLIPSE V8 Download Update";

// send email
mail ("$email","$subject","$os","$body");

// end script
exit;

?>

Don't know if any of this will help, but I will follow this thread because I will have to do the same thing in SF7 and since it uses the same LUA as AM5 it will make it easy.

Martin_SBT
09-23-2004, 12:00 PM
Thanks Galactek

Your example does show me how to declare variables in PHP, but i also need to know how to have this script to write to the text file that will also be on the same server.

But thanks anyway

Waza04
09-23-2004, 02:04 PM
Thanks Galactek

Your example does show me how to declare variables in PHP, but i also need to know how to have this script to write to the text file that will also be on the same server.

But thanks anyway

Thats not really related to Setup Factory is it?

GalacTek
09-23-2004, 02:11 PM
Not that I am aware of. I have used that script for other things.

Ted Sullivan
09-23-2004, 02:34 PM
One of the most important features of Setup Factory 7.0 is that your installer can do just about *anything* now!

Whether you need to read information from the registry, write out text files, prompt the user for information, post data to web forms, download files by HTTP or hundreds of other tasks that used to be impossible for an installer to do!