Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 Oct 2014, 08:03
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Puppy-Win32-Installer
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 9 of 9 [135 Posts]   Goto page: Previous 1, 2, 3, ..., 7, 8, 9
Author Message
noryb009

Joined: 20 Mar 2010
Posts: 539

PostPosted: Sun 24 Oct 2010, 21:56    Post subject:  

Is "C:\Backups\BCD Backup" a file?

Can you overwrite the 3.1 main.nsi with the attachment, then try again? IT IS NOT ZIPPED, just remove the .gz

Thank you!
main.nsi.gz
Description 
gz

 Download 
Filename  main.nsi.gz 
Filesize  37.97 KB 
Downloaded  243 Time(s) 
Back to top
View user's profile Send private message 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Sun 24 Oct 2010, 22:26    Post subject: New main.nsh  

I see "C:\Backups\BCD Backup".
noryb009 wrote:
Can you overwrite the 3.1 main.nsi with the attachment

Thanks. I am trying. But seems same result (freeze).
I suspect creating new item sucseeds (return 0), but somthing wrong in handling the returned ID.

Additional info: Re-run the installer after killing the primer installer, it completes with sucsess, of couse without rewrting the BCD.
My repeated proccess is then uninstall from the menu.

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Sun 24 Oct 2010, 23:00    Post subject: bcdedit reply  

Well, this may be important info:
My Windows 7 is Japanese version, so the 'bcdedit' replies in Japanese.
bcdedit_add_entry.PNG
 Description   Windows 7 Japanese version
 Filesize   4.49 KB
 Viewed   576 Time(s)

bcdedit_add_entry.PNG


_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Mon 25 Oct 2010, 02:13    Post subject: ExecWait  

Hi, noryb.
I am looking up your last main.nsi.
At line 364-366:
Code:
    messagebox MB_OK 'Debug: command run:$\r$\nbcdedit /export "C:\Backups\BCD Backup"' #debug
    ExecWait 'bcdedit /export "C:\Backups\BCD Backup"' $1
    messagebox MB_OK 'Debug: result:$\r$\n$1'

At line 372-379:
Code:
    messagebox MB_OK 'Debug: command run:$\r$\nbcdedit /create /d "${WHAT_TO_CALL_ON_BOOT}" /application bootsector' #debug
    ExecWait 'bcdedit /create /d "${WHAT_TO_CALL_ON_BOOT}" /application bootsector' $5
    messagebox MB_OK 'Debug: result:$\r$\n$5'
    StrCpy $4 "$5" #debug
    push $5
      call BetweenBrackets
    pop $5

Both i see the debug dialog - 'result: 0'
Means both the command 'bcdedit' returns the exit code '0', may mean success.
The last 'ExecWait' sets the exit code, $5 = 0.
The function BetweenBrackets proceeds '0' and get in an infinitive loop.

How to get the reply of the command 'bcdedit' with NSIS, that is the question.

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
noryb009

Joined: 20 Mar 2010
Posts: 539

PostPosted: Mon 25 Oct 2010, 15:58    Post subject:  

Thank you for that. I looked it up again and found execwait does return the return code, not the output, I think I found how to get it, though.

Ok, firstly, check your C:\Program Files\NSIS\Pulgins, and make sure nsexec is there. (if it isn't, you may have to reinstall NSIS and select it)

Uninstall puppy (if it's in your menu, otherwise, don't worry), and remove the entry from bcdedit.

Then, try out the attached main.nsi (again, just rename it).
main.nsi.gz
Description 
gz

 Download 
Filename  main.nsi.gz 
Filesize  38.1 KB 
Downloaded  254 Time(s) 
Back to top
View user's profile Send private message 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Mon 25 Oct 2010, 21:23    Post subject: nsexec  

Thanks, noryb.
I have nsexec.
Tried new main.nsi. A bit forward? But still freezes after the 'result: 0' at the same point.
Code:
    nsExec::ExecToStack 'bcdedit /create /d "${WHAT_TO_CALL_ON_BOOT}" /application bootsector'
    pop $5
    messagebox MB_OK 'Debug: result:$\r$\n$5'

I see still 'result: 0' .

Log left:
Code:
Output folder: C:\Puppy-Linux-511
Extract: lupq-511.sfs... 100%
Extract: vmlinuz... 100%
Extract: initrd.gz... 100%
Extract: readme.txt
Output folder: C:\Puppy-Linux-511
Output folder: C:\Backups
Output folder: C:
Extract: grldr... 100%
Extract: grldr.mbr... 100%

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
noryb009

Joined: 20 Mar 2010
Posts: 539

PostPosted: Mon 25 Oct 2010, 22:07    Post subject:  

I see now. The stack had the return code, then the output. I changed the installer and added another "pop $1".
main.nsi.gz
Description 
gz

 Download 
Filename  main.nsi.gz 
Filesize  38.36 KB 
Downloaded  288 Time(s) 
Back to top
View user's profile Send private message 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Tue 26 Oct 2010, 00:15    Post subject:  

noryb009 wrote:
I see now. The stack had the return code, then the output. I changed the installer and added another "pop $1".

Promising!
I cannot test it right now because i am out now.
You will see the result maybe tommorow.

Thanks, noryb.

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Tue 26 Oct 2010, 09:28    Post subject: almost got it
Subject description: Lucid-Puppy-Quickset-511-Installer.exe
 

We've almost got it, noryb!
Double pop works well and succeeded to modify the BCD!

But the menu.lst was broken because the $1 was overwritten.
I think next order is better for the tasks:
  1. save the files, vmlinuz, etc.
  2. save the grldr
  3. make the menu.lst
  4. make new entry in BCD(or boot.ini)

The entry of menu.lst was reverted using (hd0,0).

I made a small change against your main.nsi and got a success.Very Happy
Attached the main.nsi i used.
The LupQ installer made, Lucid-Puppy-Quickset-511-Installer.exe, available here.

We need more test, but we have almost got it!
main.nsi.gz
Description  NOT ZIPPED. Just change the name to 'main.nsi'.
gz

 Download 
Filename  main.nsi.gz 
Filesize  38.48 KB 
Downloaded  272 Time(s) 

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html

Last edited by shinobar on Sun 31 Oct 2010, 08:06; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
noryb009

Joined: 20 Mar 2010
Posts: 539

PostPosted: Tue 26 Oct 2010, 15:13    Post subject:  

That's great news! The only other thing I have to test on 7 is a non-admin user trying to install it. I also have to do a little more 9x testing, and then I think it's done!

Quote:
The entry of menu.lst was reverted using (hd0,0).

Yes, I forgot about changing that.
Back to top
View user's profile Send private message 
noryb009

Joined: 20 Mar 2010
Posts: 539

PostPosted: Tue 26 Oct 2010, 17:16    Post subject:  

I made a small script to test if the user is an admin. Can you test it out? (again, not zipped, just right click > compile, then run "AdminTest.exe"). Can you also try it on a user that isn't admin? (it should ask for the admin password, try it correctly and incorrectly)
Test.nsi.gz
Description  Not zipped, just rename.
gz

 Download 
Filename  Test.nsi.gz 
Filesize  274 Bytes 
Downloaded  243 Time(s) 
Back to top
View user's profile Send private message 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Tue 26 Oct 2010, 20:29    Post subject: AdminTest  

noryb009 wrote:
I made a small script to test if the user is an admin.

All success in my test!

  1. The account 'shino' on Windows 7 is the Administrator with no passward.
    I ran the AdminTest.exe. A dialog arised asking to allow the program modifying the computer. Reply just 'Yes', it says 'You are admin.'

  2. Made a 'guest' account. It is the default of the Windows 7. I need just activate the account.
    Switched to the account 'guest'. Ran the AdminTest.exe. Same dialog as before. Just reply 'Yes' is enough in this case because the admin not require password. The script says 'You are admin.'

  3. Made a password all lower case for the account 'shino', the Administrator.
    Of course 'shino' is not required password to execute the AdminTest.exe.
    All is the same regardless with or without password for the account 'shino'.

  4. Switched to 'guest'. Ran the AdminTest.exe. A dialog arised same as before but with the password entry for account 'shino', the Administrater. 'Yes' with no password entry denied and the dialog again. Enter the correct password and 'Yes'. the script says 'You are admin.'

  5. Changed the password of 'shino' with Upper case and lower case included. Same result as the all lower case above.

All is perfect i think. Thanks.

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Tue 26 Oct 2010, 20:46    Post subject: Lucid-Puppy-Quickset-511-Installer  

Hi, noryb!

I enter my Windows 7 with account 'guest'.
Un-installed the Puppy of the yesterday. Required the password, enterd it, the un-install performed correctly.

Again i run with the account 'guest', Lucid-Puppy-Quickset-511-Installer.exe i made yesterday.
The password required. I enter the password. The install goes on with success.
Great! The admin issue may already be cleared with your former installer maker, i guess.

Thanks.

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
noryb009

Joined: 20 Mar 2010
Posts: 539

PostPosted: Tue 26 Oct 2010, 21:00    Post subject:  

Quote:
Great! The admin issue may already be cleared with your former installer maker, i guess.


The new type works with all windows versions.

Thank you for all your help!
Back to top
View user's profile Send private message 
noryb009

Joined: 20 Mar 2010
Posts: 539

PostPosted: Sun 31 Oct 2010, 15:29    Post subject: Puppy Linux Installer Creator V1.0  

I finished the Puppy Linux Installer Creator V1.0.

Moved here: http://murga-linux.com/puppy/viewtopic.php?t=61404
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 9 of 9 [135 Posts]   Goto page: Previous 1, 2, 3, ..., 7, 8, 9
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0872s ][ Queries: 12 (0.0069s) ][ GZIP on ]