Program that doesn't require Installation

Discussion in 'Programmer's Corner' started by Anthony Quah, Mar 22, 2009.

  1. Anthony Quah

    Thread Starter Active Member

    Dec 1, 2007
    80
    0
    hi,

    I am trying to do a project in my factory but was not allow to install any software into the system... may I know anyone of you know what kind of software doesn't need to install to run it? a good example is batch files ...other than that is there still any? cause batch files got limited function...Thank you..


    Anthony
     
  2. bertus

    Administrator

    Apr 5, 2008
    15,648
    2,346
    Hello,

    What kind of software do you need ?
    There is software that runs directly from a USB stick.
    Take a look at portable applications:
    http://portableapps.com/

    Greetings,
    Bertus
     
  3. Anthony Quah

    Thread Starter Active Member

    Dec 1, 2007
    80
    0
    Oh..not like this..I more on writting the program and put into a system to run...example batch files program allow short cut and start certain program..without the need to install any software into the system..
     
  4. bertus

    Administrator

    Apr 5, 2008
    15,648
    2,346
  5. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    It is normal to run control programs out of EPROM.
     
  6. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    If you are in a networked environment, which it sounds like you are, since policies are enforced, Windows Scripting Host is more than likely installed.

    VBScript is like VBA (Visual Basic for Applications), but is meant to run install programs, HTA (HyperText Administration) pages, etc. You can also directly edit the registry, provided the script is running with admin privileges.

    Here is an example, showing the format and how to run a command from This site, topic about using VBScript in an installer package

    Code ( (Unknown Language)):
    1.  
    2. Dim curdir, WshShell
    3.  
    4. caption = "InstallerDemoService.Setup"
    5. 'Determine the path where this running script is.
    6.  
    7. 'That is also the path to the config-file.
    8.  
    9. 'The path ("[TARGETDIR]") is being passed by the installer
    10.  
    11. 'in the one available parameter: CustomActionData
    12.  
    13. curdir = Session.Property("CustomActionData")
    14.  
    15. 'Start Notepad with the config-file
    16.  
    17. Set WshShell = CreateObject ("WScript.Shell")
    18. WshShell.Run ("notepad.exe """ +
    19. curdir + "\InstallerDemoService.exe.config""")
    20.  
    21.  
     
  7. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    Geek 1: What do you use for editing?
    Geek 10: UV.
     
  8. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    Good one! (padding added to satisfy message length)
     
  9. Anthony Quah

    Thread Starter Active Member

    Dec 1, 2007
    80
    0
    well, this VBScript require to install first..which i don't allowed to unfortunely..
     
  10. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    With the limitations, only a Java applet would seem to fit.

    WSH should be installed by the IT Department if requested. If not authorized, then there isn't really anything to be done. Explain the problem to your manager if you are required to write software that won't run in the standard environment.

    What does the software need to do? If it cannot install to the drive, where will it be stored?
     
  11. Anthony Quah

    Thread Starter Active Member

    Dec 1, 2007
    80
    0
    well, it more sound like execute a program like batch files without the need of using a software...mean running with what we have in the system without need to install any application ..btw, anyone know what command can be use to Print Screen in batch files?
     
Loading...