![]() |
#1 |
Senior Member
Join Date: Feb 2003
Location: Toronto, Canada
Posts: 227
|
3DNA installer
If you're interested try out the download on www.3dna.net. I built the installer in NSIS using a custom built tool that would generate an install script which could be built by NSIS. I would be happy to answer any questions anyone has about how I've made the installer.
Perhaps the most unique page in the installer is a hardware check which checks to see if your system is capable of running our software. Thanks to all the NSIS developers and community who took the time to answer my many questions. |
![]() |
![]() |
![]() |
#2 |
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
Maybe you can post some screenshots so people don't have to download these huge files
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Join Date: Feb 2003
Location: Toronto, Canada
Posts: 227
|
Indeed I can, here's one
|
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Feb 2003
Location: Toronto, Canada
Posts: 227
|
And here's another,
|
![]() |
![]() |
![]() |
#5 |
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
Can you post the detection function for CPU, RAM, VRAM etc. in the NSIS Archive: http://nsis.sourceforge.net/archive/nsisweb.php
I'm sure they can be useful for others. |
![]() |
![]() |
![]() |
#6 |
Major Dude
|
Is it just me or are both of the screenshots identical???
Vytautas |
![]() |
![]() |
![]() |
#7 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
That sure is a great screenshot, becaus eit shows how NSIS code can do practically anything!
T'is amazing stuff! -Stu |
![]() |
![]() |
![]() |
#8 |
Senior Member
Join Date: Feb 2003
Location: Toronto, Canada
Posts: 227
|
Doh! You're right they are the same screenshot. Here's the other screenshot I meant to post.
|
![]() |
![]() |
![]() |
#9 |
Major Dude
|
Hmmmm... Good Screenshots! NSIS makes more than a simple installer, isn't it?
|
![]() |
![]() |
![]() |
#10 |
Senior Member
Join Date: Feb 2003
Location: Toronto, Canada
Posts: 227
|
The hardware info plugin is now up for your enjoyment here in the archives. It is located in the "Plugins" area called "System hardware detection"
|
![]() |
![]() |
![]() |
#11 |
Major Dude
|
Could you post a copy of your registration form script & ini file?
Vytautas |
![]() |
![]() |
![]() |
#12 |
Senior Member
Join Date: Feb 2003
Location: Toronto, Canada
Posts: 227
|
I've attached the ini and an example custom function which I use to fill in the hardware information in the form before it is displayed. I cut out alot of stuff but it does show how you can work with the HwInfo plugin.
|
![]() |
![]() |
![]() |
#13 |
Senior Member
Join Date: Feb 2003
Location: Toronto, Canada
Posts: 227
|
Ok it might help to actually attach the file. Let's try that again...
|
![]() |
![]() |
![]() |
#14 |
Senior Member
Join Date: Feb 2003
Location: Toronto, Canada
Posts: 227
|
Ok, yes I know I messed up again. I'm going to get it this time for real.
|
![]() |
![]() |
![]() |
#15 |
Junior Member
Join Date: Aug 2005
Location: Austria, Europe
Posts: 2
|
![]()
Could you post your hardware check script and ini file?
|
![]() |
![]() |
![]() |
#16 | |
Senior Member
Join Date: Feb 2003
Location: Toronto, Canada
Posts: 227
|
Quote:
The basic idea behind the hardware page was too look at each piece of hardware you want to evaluate. Compare it against a set standard which you decide and assign that piece of hardware a score depending on how well it did. Then you add all the scores together to display a message to the user telling them how things are likely to run. Works pretty well. Like I said, ask me any questions you want I'll be happy to answer them. |
|
![]() |
![]() |
![]() |
#17 |
Junior Member
Join Date: Aug 2005
Location: Austria, Europe
Posts: 2
|
Okay, can you give me still the ini file?
|
![]() |
![]() |
![]() |
#18 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
INI file is in the registration.zip attachment isn't it?
-Stu |
![]() |
![]() |
![]() |
#19 |
Senior Member
Join Date: Feb 2003
Location: Toronto, Canada
Posts: 227
|
Yes it is Afrow. That INI file from the registration.zip should be good to go.
|
![]() |
![]() |
![]() |
#20 |
Senior Member
Join Date: May 2007
Location: Maple Grove, Minnesota
Posts: 134
|
Would it be possible to get the ini file for hwcompare.nsi ? I really like your screen capture of that panel.
|
![]() |
![]() |
![]() |
#21 |
Major Dude
Join Date: Feb 2007
Posts: 672
|
It's in the zipfile:
http://forums.winamp.com/showpost.ph...6&postcount=14 |
![]() |
![]() |
![]() |
#22 |
Senior Member
Join Date: May 2007
Location: Maple Grove, Minnesota
Posts: 134
|
The one for registration.jpg is in the zip file, but the one for hardwarecheck.jpg is not. I want to display a panel like hardwarecheck.jpg. I guess I could spend some time and recreate one from scratch. The source code to fill in hardwarecheck panel is included in one of the zip files, but not the ini.
|
![]() |
![]() |
![]() |
#23 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
You should try to use nsDialogs anyway.
Stu |
![]() |
![]() |
![]() |
#24 |
Major Dude
Join Date: Mar 2003
Posts: 571
|
Here is an INI file that works with the hwcompare.nsi file and a screenshot showing the result.
|
![]() |
![]() |
![]() |
#25 |
Moderator
Join Date: Aug 2004
Location: Poland
Posts: 563
|
Hi,
Doeas this plugin get correctly RAM if it is more then 4GB? Ps: I also recommand nsdialogs. -Pawel |
![]() |
![]() |
![]() |
#26 |
Major Dude
Join Date: Mar 2003
Posts: 571
|
Sorry, I don't know if it can detect more than 4 GB. My computer has 4 GB and that gets reported as 4096 MB.
The plugin does not seem to detect video RAM correctly: my graphics card has 512 MB but the plugin reports only 256 MB. I used the HwInfo plugin from the wiki: http://nsis.sourceforge.net/HwInfo_plug-in |
![]() |
![]() |
![]() |
#27 |
Moderator
Join Date: Aug 2004
Location: Poland
Posts: 563
|
I made quick test.
For me this plugin correctly returns CPU speed and VRAM (but it seems I have only 256MB, so I dont know what if it is more installed). RAM function failes. It shows only 4GB. I guess you should use GlobalMemoryStatusEx() instead of GlobalMemoryStatus (if you use it ![]() http://meggamusic.co.uk/shup/1272558851/hw_test.png -Pawel |
![]() |
![]() |
![]() |
#28 |
Senior Member
Join Date: May 2007
Location: Maple Grove, Minnesota
Posts: 134
|
Thank you. The attached ini file worked perfectly. The only thing that would make this dialog look better is if the first control was displayed with the first field not highlighted. Being in focus is ok, but the highlighted field changes the coloring.
|
![]() |
![]() |
![]() |
#29 |
Major Dude
Join Date: Mar 2003
Posts: 571
|
You can set the focus to another control on the page to avoid this problem.
Near the end of hwcompare.nsi change tocode: Although I used the "Next" button here, you can change this code to set the focus to another control.code: |
![]() |
![]() |
![]() |
#30 | |
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
Quote:
PHP Code:
That way no specific control has focus, but you can still use keyboard shortcuts (if using any). |
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|