Thread: need people to test out my installer

  1. #1
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905

    need people to test out my installer

    hey everyone, if you could, please check out my installer and tell me if it works...

    it can be found at the ivgda site (link is below). It is in the Latest_Programs section (once you've entered the main site) and it is called OpenScript.

    Once you have downloaded the file, install it as you would any program, and then go in to your start menu and find the folder OpenScript. Go in there, and keep going in till you find the tutorials folder

    go to that folder and run the tutorials...tell me if they work

    i need to know if it worked or not, what operating system you have, and what your gfx card is.....

    thank you all VERY much for doing this in advance

    just so you know, it works fine for me in Windows XP Pro......but i don't know about any of the lower operating systems.

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    The tutorials worked, but I despise the installer because it wouldn't let me select which directory to install to.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  3. #3
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    well, i would change that, but the thing is, i need to know the place i am installing the file to, so that i can edit the registry files to run the program without the user having to search for it

    if i ever find a way around this, i will fix it, but untill then, i'm sorry...

    besides, there are shortcuts to all of the files you need to be able to use in the start menu....

    and what OS did you use?

  4. #4
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    >i need to know the place i am installing the file to,

    if you let the user choose, you have the directory (after they enter it) and you can save that in a file which you will know the location of. just a suggestion.

  5. #5
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    lol, it's not that easy....i'm using an install file creating program called CBInstaller. I downloaded it from download.com and it works great for installing stuff and all that to the registry and etc. But the thing is, when editing the registry, i can't tell what the user is installing to, so i have to type in C:\Program Files\IVGDA\OpenScript\ and not allow the user to change the path

    a link to the install file creator is below:

    http://download.com.com/3120-20-0.ht...ler&tg=dl-2001


    so, when i edit the file, is there any special command that I can use to know what the user is installing to? I know there is a %systemroot% command, so might there be a %installdirectory% command or something?
    Last edited by jverkoey; 03-27-2003 at 07:40 PM.

  6. #6
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    I don't know how to change the registry through programs; however, some people may not have a c: drive, so that could pose a problem. sorry i couldn't help much though.

  7. #7
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    well, if anyone here has ever developed a program that edits the registry and adds some keys to it, please tell me

    these are the keys I add in the install file, and they work fine:

    (placed in code tags so it's easier to read)
    Code:
    HKEY_CLASSES_ROOT/.ost        Type: REG_SZ  Data: ost_auto_file
    HKEY_CLASSES_ROOT/ost_auto_file/shell/open/command    Type: REG_SZ  Data: C:\Program Files\IVGDA\OpenScript\EXE\OpenScript.exe %1
    HKEY_CLASSES_ROOT/ost_auto_file/shell/edit/command    Type: REG_SZ  Data: C:\WINDOWS\notepad.exe %1
    and that successfully (on Win xp Pro at least, still haven't heard from other people *sigh*) sets up the registry so that when you double click a .ost file, it runs the exe

    now, I have tried placing a %SystemRoot% at the beginning, but then it always says it can't find the exe and starts doing weird stuff.....when i try and run the .ost files, it says that it can't find the file that i am trying to run

    *sigh*
    so there has to be some way that I can make my own installer in DOS, but I've tried looking at msdn and using the KeyCreate stuff or whatever it's called and it always crashes whenever I try and create the key.......

    help would be appreciated
    thank you

    -edit-
    typos

  8. #8
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Here's how to get the app's exe path: (windows.h and cstring)

    Code:
    char *pStr, szPath[_MAX_PATH];
    GetModuleFileName(AfxGetInstanceHandle(), szPath, _MAX_PATH);
    pStr = strrchr(szPath, '\\');
    if (pStr != NULL)
        *(++pStr)='\0';
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  9. #9
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    just so you know, i still havent' made my OWN installer, the registries above are taken from that install-MAKING program....

    just wanted to clarify that

  10. #10
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by jverkoey
    just so you know, i still havent' made my OWN installer,
    need people to test out my installer
    Contradiction!
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  11. #11
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    aaarrrk

    i meant, i haven't programmed my own installer

    i have MADE one, but i didn't PROGRAM it, so i don't have much control over it

  12. #12
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by jverkoey
    aaarrrk

    i meant, i haven't programmed my own installer

    i have MADE one, but i didn't PROGRAM it, so i don't have much control over it
    made one without programming it? How does that compute? Did you boss someone around to make it for you?
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  13. #13
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Try using <TARGETDIR> instead of %SYSTEMROOT%.

    I was bored, so if you want code to preserve the extensions, here ya go.

    Code:
    void CreateNewKey( char * keyName, HKEY lPredefinedKey ) {
    
    	long hKey;
    	unsigned long result;
    
    	RegCreateKeyEx( (HKEY)lPredefinedKey, keyName, 0, "", REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, 0, (HKEY *)&hKey, &result );	
    
    	RegCloseKey( (HKEY)hKey );	
    
    }
    
    void SetKeyValue( char *keyName, char *valueName, BYTE *valueSetting, long valueType, long valueSize ) {
    
    	long hKey;
    
    	RegOpenKeyEx( HKEY_CLASSES_ROOT, keyName, 0, KEY_ALL_ACCESS, (HKEY *)&hKey );
    
    	RegSetValueEx( (HKEY)hKey, valueName, 0, valueType, valueSetting, valueSize );	
    
    	RegCloseKey( (HKEY)hKey );
    
    }
    
    void CreateAssociation( ) {
    
    	char szPath[_MAX_PATH];
    	GetModuleFileName(GetModuleHandle( 0 ), szPath, _MAX_PATH);
    
    	// File associations begin with a listing of the default extension under HKEY_CLASSES_ROOT
    	// Time to create one.
    	CreateNewKey( ".ost", HKEY_CLASSES_ROOT );
    	// Now we tell the registry where to look for commands based on that app
    	SetKeyValue( ".ost", "", (BYTE *)("ost_auto_file"), REG_SZ, strlen( "ost_auto_file" ) + 1 );
    
    	// Create the MyApp.Document directory, which is where we will put all commands for the file type
    	CreateNewKey( "ost_auto_file\\shell\\open\\command", HKEY_CLASSES_ROOT );
    	CreateNewKey( "ost_auto_file\\shell\\edit\\command", HKEY_CLASSES_ROOT );
    	// Set its default item to "MyApp Document", which will be displayed in Windows explorer
    	SetKeyValue( "ost_auto_file", "", (BYTE *)("OpenScript File"), REG_SZ, strlen( "OpenScript File" ) + 1 );	
    
    	// Append '%1' to ensure that the file is passed as an argument to the program
    	strcat( szPath, " %1" );
    	SetKeyValue( "ost_auto_file\\shell\\open\\command", "", (BYTE *)szPath, REG_SZ, strlen( szPath ) + 1 );
    	SetKeyValue( "ost_auto_file\\shell\\edit\\command", "", (BYTE *)("notepad.exe %1"), REG_SZ, strlen( szPath ) + 1 );
    
    	// Done!
    
    }
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  14. #14
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    You can solve your problems with
    http://www.gentee.com/setupgen/index.htm

    That's the program I'm using.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  15. #15
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    Originally posted by Magos
    made one without programming it? How does that compute? Did you boss someone around to make it for you?
    AAREK, LMAO

    ok, i made an installer with an install file creator

    and actually, now i have made my own installer, I'm making it so you can specify the drive to install to, the path, and then i'm going to work on my own extraction program to put all the files there

    hopin' this'll work, lol

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Looking for a few people willing to test!
    By ILoveVectors in forum Projects and Job Recruitment
    Replies: 55
    Last Post: 08-30-2005, 12:12 AM
  2. C++ Operator Overloading help
    By Bartosz in forum C++ Programming
    Replies: 2
    Last Post: 08-17-2005, 12:55 PM
  3. February 1, 2019...
    By Cheeze-It in forum A Brief History of Cprogramming.com
    Replies: 98
    Last Post: 08-03-2002, 07:24 AM
  4. Religious Bull****
    By Witch_King in forum A Brief History of Cprogramming.com
    Replies: 119
    Last Post: 10-23-2001, 07:14 AM
  5. IT people - weird genius or simply narrow-minded, antisocial, lazy people
    By Carlos in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 10-11-2001, 05:00 AM