It is currently December 14, 2018, 06:09:47 PM




Post new topic Reply to topic  [ 5 posts ] 
 random stuff i find 
Author Message
Adventurer
User avatar

Joined: May 19, 2007, 10:41:43 PM
Posts: 460
Location: England
Character: Orians
Clan: Ironfist
Post random stuff i find
Code:
// main
var srDest;
var err;
var fDesktop;
var szFolderDesktop;

srDest = $SpaceRequired$;
err    = initInstall("Firefox Installer", "/mozilla.org/Firefox Installer", "$Version$");
logComment("initInstall: " + err);

// Find the current user's desktop
winreg = getWinRegistry();
winreg.setRootKey(winreg.HKEY_CURRENT_USER);
subkey              = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders";
valname             = "Desktop";
szFolderDesktop     = winreg.getValueString(subkey, valname);

fDesktop = getFolder("file:///", szFolderDesktop);
logComment("Desktop location: " + fDesktop);

if(verifyDiskSpace(fDesktop, srDest))
{
  setPackageFolder(fDesktop);

  err =  addFile("",
                 "",
                 "FirefoxNetSetup.exe", // dir name in jar to extract
                 fDesktop,             // Where to put this file (Returned from getFolder)
                 "");                  // subdir name to create relative to fProgram

  logComment("addFile() returned: " + err);

  err = execute("FirefoxNetSetup.exe", "", false);
  logComment("execute() returned: " + err);

  // check return value
  if(err==SUCCESS)
  {
    err = performInstall();
    logComment("performInstall() returned: " + err);
  }
  else
    cancelInstall(err);
}
else
  cancelInstall(INSUFFICIENT_DISK_SPACE);

// end main



from http://gnuzilla.gnu.org/fulltree/icecat ... r/windows/
i do some random browesing and i came along this what type of script is it i think its C# but dno maybe u read it and look and this stuff


December 28, 2007, 06:16:23 PM
Profile
Administrator

Joined: March 30, 2006, 03:55:59 PM
Posts: 2244
Location: The Netherlands
Post Re: random stuff i find
looks abit like Java to me (but I don't know Java) xD

_________________
ImageImageImage


December 28, 2007, 06:45:29 PM
Profile
Newcomer
User avatar

Joined: May 24, 2007, 10:01:08 AM
Posts: 46
Location: Brazil
Character: Adrena
Clan: Adepts of the Cult
Post Re: random stuff i find
erm....it's java...i do not know what this code does (i dont know java that good xD)
but i think it installs something on your firefox ueAHUEhaueu ;x

xD

_________________
[img:350:150]http://img70.imageshack.us/img70/6940/adrenadragonbv2.jpg[/img]


December 28, 2007, 08:28:53 PM
Profile
Adventurer
User avatar

Joined: May 19, 2007, 10:41:43 PM
Posts: 460
Location: England
Character: Orians
Clan: Ironfist
Post Re: random stuff i find
umm i find it on a site when firefox was beta had the codes how firefox installs thats one of them .

it was a version of icecat then turned into firefox if i read it right :D


December 29, 2007, 08:51:37 PM
Profile
Adventurer
User avatar

Joined: May 06, 2007, 09:34:44 PM
Posts: 343
Location: Holmen, WI, USA
Character: Zume
Clan: Ironfist
Post Re: random stuff i find
Looks to me like it saves the Install file for Firefox on your desktop, and cancels if there is not enough disc space.

_________________
Don't be afraid to give up the good, for the great.
<<The character formally known as Crank>>


December 29, 2007, 09:26:24 PM
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.