Puppy Linux Windows Installer - LICK v1.3.3 released

A home for all kinds of Puppy related projects
Message
Author
noryb009
Posts: 634
Joined: Sat 20 Mar 2010, 22:28

#21 Post by noryb009 »

I just looked it up, and while it runs the same way as 9x, Microsoft removed the boot loader to save a few seconds on startup. This makes it almost impossible to have GRUB installed without editing the MBR, which means I will have to not support Windows ME.

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Windows ME

#22 Post by shinobar »

noryb009 wrote:I will have to not support Windows ME.
Thanks olgaritmo and noryb. Important information.
Found Wubi also does not support Windows ME.
https://wiki.ubuntu.com/WubiGuide#Unsupported set-ups
Unetbootin ... Ah, does not support any of Windows 9x/Me.
http://unetbootin.sourceforge.net/
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

Used method for 580 MB puplet - works

#23 Post by emil »

Thank you noryb009,

short success-story; I used the method to make an exe installer from an 580 MB pupplet. I tested it successfully now on a XP and a Windows 7 machine.

Technically I had no problem, but I had to resize peronal storage file 2 times, because everything runs in folder /root/.wine (and you need place for puppy-sfs AND exe file)

is there any possibility to use another directory for the build process (i.e on out of the personal storage file).

Second (small) problem I had when I did "Test Installer" after the creation Process. I had Grub installed before, but this was wiped and afterwards I could only boot to XP (couldn't see my Linux partitions anymore). Luckily I had stored some Puppy iso files on my Windows Partition, so I could revive my computer via USB install. So maybe my example should be a WARNING to others.

cheers and thanks!
emil

noryb009
Posts: 634
Joined: Sat 20 Mar 2010, 22:28

#24 Post by noryb009 »

emil: Thanks a lot for helping test.
is there any possibility to use another directory for the build process (i.e on out of the personal storage file).
I'll test a symlink to a hard drive. Thanks for the suggestion!
Second (small) problem I had when I did "Test Installer" after the creation Process. I had Grub installed before, but this was wiped and afterwards I could only boot to XP (couldn't see my Linux partitions anymore). Luckily I had stored some Puppy iso files on my Windows Partition, so I could revive my computer via USB install. So maybe my example should be a WARNING to others.
I'm not sure what happened. Did you run the installer in Puppy? It should have just crashed and burned. Do you have GRUB installed to the MBR?

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

installer

#25 Post by emil »

I am also not sure what happend, the exe was created successfully.
But then I think I ran the installer in Puppy with wine still installed (or did I just press the "Test Installer" Button, I cant remember).

I had old grub (not grub4dos) installed on the machine and various puppies and also an old Windows XP install in the menu. My plan was to reboot, then start up Winows XP, and run the installer to test it. But it never entered Grub menu, it went directly to XP (first in sort of recovery mode).

So I reccomend: don't run the exe from inside puppy when you have wine installed and dont press the "Test installer" button of the nsis exe creator programm, until this is resolved.

I still have to reinstall GRUB and get my old boot options back ;-), but no problem.

noryb09 - i think this is the easiest possibility to get puppy running on a computer (most have windows installed), in fact its much easier than burning CD's and messing with USB sticks. Big cudoz for this technique - BIG achievment !!! I think everybody can download a file and click on it!

emil

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

64 Bit Windows 7

#26 Post by emil »

Will there be a problem if the installer runs on a 64 Bit Windows machine?

noryb009
Posts: 634
Joined: Sat 20 Mar 2010, 22:28

#27 Post by noryb009 »

It should work with 64 bit, I don't see any reason why it wouldn't.

Ok, I'll just add that to the main post.

Thanks a lot!

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

How it works

#28 Post by emil »

Hello, may I just ask a quick question:

I am not sure if I got it right how it works:

It checks windows/bottloader version

if xp: it changes the boot.ini
if Vista or Windows 7: it uses bcdedit to change the boot entry (like explained above)
if 9x: I dont know
if an existing grub is found: it stops and asks you to edit the menu.lst manually

then it installs grub4dos, but after the windows bootloader, so you can have 2 menus consecutive bootmenus (1.st on from windows, 2nd one from grub)

it WILL NOT change the mbr!

is this roughly right (especially the part about not changing the mbr)? Sorry about my sloppy terminology.

emil

PS; just for the reccord, while googling yesterday I found EassyBCD which is a free windows gui for editing the boot entries.
http://neosmart.net/dl.php?id=1

noryb009
Posts: 634
Joined: Sat 20 Mar 2010, 22:28

#29 Post by noryb009 »

That's roughly right. It DOES NOT change the MBR.
if 9x: I dont know
It does something with the config.sys or something, or only got it working because of Lin'n'Win.
if an existing grub is found: it stops and asks you to edit the menu.lst manually
Not exactly, it automaticly adds the entry to the bootloader.

I saw EasyBCD before, but I'm not using it because:
- I already have it working OK
- I'm not sure if it takes command
- I'm not sure if the installer can unzip it, and run it without touching the system much.

ICPUG
Posts: 1308
Joined: Mon 25 Jul 2005, 00:09
Location: UK

#30 Post by ICPUG »

Emil,

Have a look at the Lin'N'Win notes to see precisely what happens for Windows 9x and Windows XP. Noryb009 has taken my manual procedure and automated it!

I will be updating Lin'N'Win soon with the Windows 7 technique of Noryb009.

The Lin'N'Win notes can be found here:
http://www.icpug.org.uk/national/linnwi ... innwin.htm

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

Problem with Windows 7 64 bit

#31 Post by emil »

Hi all, thank you for the info!

I tried to advocate the exe installer I made from my Sage Puplet to the Sage community. I met with some support, but overall response was very sceptical. They fear to break something on users windows machines, and risk reputation.

Well, may it be so. One problem I found was really with Windows 7 on 64 bit.
The installer hangs at the bcdedit command for backup :-( ...

I had one negative report from the sage-windows group. Bill tried really hard to get it working, but couldn't. I then walked to friend who has a 64 bit windows 7. It was exactly the same problem there.

The script couldnt get bcdedit to make a backup (there the installer stops), also there was no menu entry created in the bootloader.

I typed the commands manually in the command shell, It worked fine. Do you have an idea what can be wrong here? Can it by some sort of weird permission problem? (I ran the install script, as well as the command shell "as administrator")

All 32-bit installs were fine until now!

kind regards
emil

noryb009
Posts: 634
Joined: Sat 20 Mar 2010, 22:28

#32 Post by noryb009 »

emil: That's not good.

Are you sure it says "bcdedit /export "C:\Backups\BCD Backup"" in the execute area? (see attached "installer" which is running cmd). Also, does the folder "C:\Backups\BCD Backup" exist?

I may see the problem, if that's the case.
Attachments
installer.JPG
(11.63 KiB) Downloaded 4354 times

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

not sure about the directory

#33 Post by emil »

At my 32 bit windows the directory Backup exists (where it worked smoothly). I am not sure on the 2 64 bit systems (where it failed). I will maybe check tomorrow.

Yes the progress bar was there. I am pretty sure that it stopped at the backup (no backup was created). (althoug the graphics of the windows 7 progress bar has pretty improved compared to your picture ;-) )

Wen I quit the installer and rerun it it skips the extraction of the lupq-511.sfs, it then creates the grldr.mbr and grldr files, but no menu.lst.

I added menu.lst manually and also the boot entry manually using bcdedit, then it booted without problem.

Hm, one thing I noticed is that I had no sound on the 2 windows machines (no woof woof), but that is probably completly unrelated.

noryb009
Posts: 634
Joined: Sat 20 Mar 2010, 22:28

#34 Post by noryb009 »

Hm, one thing I noticed is that I had no sound on the 2 windows machines (no woof woof), but that is probably completly unrelated.
Yes, this was a problem in 511, but it's fixed in 520 beta.

teasiu
Posts: 13
Joined: Wed 19 Jan 2011, 12:05

#35 Post by teasiu »

noryb009,

Thanks for your installer.

I had made it succesful in puppy511 and puppy520.

and I had plused a message in grub4dos.

It's very beautiful.

Code: Select all

#menu.lst
    SetOutPath "C:\"
    file "C:\Puppy Linux Installer Creator\menu.lst"
    FileOpen $0 "C:\menu.lst" w ;Opens a Empty File and fills it
    FileWrite $0 'timeout=10$\r$\n'
    FileWrite $0 'default=0$\r$\n'
    FileWrite $0 'gfxmenu /${INSTALL_DIR}/message$\r$\n'  ;plus in here
    FileWrite $0 'title ${PRODUCT_NAME} ${PRODUCT_VERSION}$\r$\n'
    FileWrite $0 'find --set-root --ignore-floppies /${INSTALL_DIR}/initrd.gz$\r$\n'
    FileWrite $0 'kernel /${INSTALL_DIR}/vmlinuz psubdir="${INSTALL_DIR}"$\r$\n'
    FileWrite $0 'initrd /${INSTALL_DIR}/initrd.gz$\r$\n'
    FileWrite $0 'boot$\r$\n'
    FileClose $0 ;Closes the filled file]
and upgrade grub4dos to 0.4.5b
http://code.google.com/p/grub4dos-chena ... loads/list

windows installer.exe in http://www.minilinux.net/node/1649.

But, I just known how to plus in menu.lst
I do not known how to fix it in uninstall,
Can you help?

thanks.

Image
Last edited by teasiu on Thu 20 Jan 2011, 21:05, edited 3 times in total.

noryb009
Posts: 634
Joined: Sat 20 Mar 2010, 22:28

#36 Post by noryb009 »

Hi teasiu!

Because gfxmenu is only at the top, you only need it once (Therefore, you don't need any extra code in the uninstall menu). Try this:

Code: Select all

#menu.lst 
    SetOutPath "C:\" 
    file "C:\Puppy Linux Installer Creator\menu.lst" 
    FileOpen $0 "C:\menu.lst" w ;Opens a Empty File and fills it 
    FileWrite $0 'timeout=10$\r$\n' 
    FileWrite $0 'default=0$\r$\n' 
    FileWrite $0 'gfxmenu /${INSTALL_DIR}/message$\r$\n'
    FileWrite $0 '$\r$\n'  
    FileWrite $0 'title ${PRODUCT_NAME} ${PRODUCT_VERSION}$\r$\n' 
    FileWrite $0 'find --set-root --ignore-floppies /${INSTALL_DIR}/initrd.gz$\r$\n' 
    FileWrite $0 'kernel /${INSTALL_DIR}/vmlinuz psubdir="${INSTALL_DIR}"$\r$\n' 
    FileWrite $0 'initrd /${INSTALL_DIR}/initrd.gz$\r$\n' 
    FileWrite $0 'boot$\r$\n' 
    FileClose $0 ;Closes the filled file
By the way, is the GRUB4DOS you linked to english? Do you think it would be better if I used that?

teasiu
Posts: 13
Joined: Wed 19 Jan 2011, 12:05

#37 Post by teasiu »

Hi, Noryb.
Thanks for your reply.

The GRUB4DOS link is English & Chinese.
It's support in 2 languages.

GRUB4DOS0.4.5b is very very powerful then 0.4.4.

take a look:
2011-01-16 clear preset_menu before enter_cmdline. uncomment the required "default entry number" resolving code(stage2.c).

2011-01-15 trying to fix ELF executable loading problem(issue 14).

2011-01-07 applied karyonix's patch (issue 9: fix geometry_tune function)

2011-01-07 applied Roy's patch(supported packed DR-DOS).

2010-12-29 applied Roy's patch(fixed build issue).

2010-12-25 applied Roy's patch(issue 13: fix autoconf and gcc issues in Linux).

2010-12-11 (r73)applied karyonix's patch(issue 11: Wrong data read USB)

2010-11-30 (r69)applied karyonix's patch(support lzma decompression).

2010-12-07 (r68)applied karyonix's patch(issue 9).

2010-11-15 improved ACPI halt code(patched by zw2312914,Thanks for MR.rockrock99 and MR.xianglang reports their different and special hardware response mechanism ).

2010-11-04 finally fixed the ACPI halt failure on AMI netbook(by commenting out ACPI-enable code).

2010-11-03 partially go back to ACPI halt code of 2010-10-29.

2010-11-02 deleted a duplicate code snip which could cause halt failure.

2010-10-31 fixed the find issue. changed ACPI halt code(based on zw2312914).

2010-10-29 improved ACPI halt code(patched by zw2312914).

2010-10-22 fixed AMI netbook gray-screen-of-death problem on halt.

2010-10-19 allow BSD primary partitions to be made active.

2010-10-12 fixed grub.exe issues when booting off Linux/kexec. Only comments added compared to 2010-10-11.

2010-10-11 try to fix grub.exe issues when booting off Linux/kexec(enabled system timer 0 init).

2010-10-09 try to fix grub.exe issues when booting off Linux/kexec(enabled writing ELCR port 4D0/4D1).

2010-10-08 try to fix grub.exe issues when booting off Linux/kexec(enabled coprocessor init by writing port F0/F1).

2010-10-07 try to fix grub.exe issues when booting off Linux/kexec(disabled writing ELCR port 4D0/4D1).

2010-10-04 improved halt with ACPI. try to fix grub.exe issues when booting off Linux/kexec(by sending 100 EOIs to PICs).

2010-09-22 let chainloader recognize isolinux.bin 4.02.

2010-09-19 added support for 800x600 graphics mode(SVGA mode 6A).

2010-08-09 improved CHS probing code of map command on ISO9660 images.

2010-08-04 finally find out the missing-extended-partition problem is caused by a gcc bug, and workarounds are created.

2010-07-25 re-enabled the extended partition with logical partitions in disorder.

2010-07-24 patch by chenall: cat --length=0 will return the size of the compressed file if it is gzipped; fix memory-not-enough problem when mapping a gzipped memory-file with a high compression ratio.

2010-07-23 improved next_pc_slice() to cope with the partition-loop problem.

2010-07-22 try to solve the problem of missing Linux extended partitions in Tab-completion.

2010-07-21 improved next_pc_slice() to cope with the partition-loop problem.

2010-07-20 changed code about pxe_basemem to solve the problem that pxe_unload fail to release memory.

2010-07-12 fixed a bug in guess_dos_versions(for DOS executable grub.exe).

2010-06-21 applied bean's patch(supported new (ud) device created with fbinst1.6).

2010-06-09 applied karyonix's patch(fixes on grub_read and blocklist).

2010-06-07 adjusted probe_int(dosstart.S) to deal with HP DV3-2309TX on its garbage int76 vector.

2010-06-03 adjusted restore_BDA_EBDA(dosstart.S) to deal with HP on its garbage EBDA size byte.

2010-05-31 unhook int13 before hooking it in load_initrd() to avoid duplicate hooking.

2010-05-29 resolved conflict between drives_addr and mmap_addr for multiboot kernels.

2010-05-27 adjusted probe_int(dosstart.S) to deal with DELL on its garbage int05 vector.

2010-05-23 change /main.lst back to /menu.lst, and the original /menu.lst dir to /menu for pxe booting.

2010-05-21 changed initial config filename from /menu.lst to /main.lst for pxe booting.

2010-05-19 fixed problem of mapping small file(<512B) to (rd).

2010-05-15 added --keep-pxe option for grub.exe running under DOS.

2010-05-14 (chenall)fixed ntfs small file(<4KB) access problem.

2010-05-13 added --off option for hiddenmenu. added nokeep subcommand for pxe. let halt return on failure.

2010-05-03 hopefully non-linux kernels could get loaded now. version number changed to 0.4.5b.

2010-03-14 fixed problems in set_bootdev and others.

2010-03-13 fixed a (possible)bug in init_pic(affect grub.exe as a linux kernel format). applied Icecube's patch(curr_part_start).

2010-01-22 applied karyonix's patch(PAE).

2010-01-07 fixed problem of "command-line length limited to 15" on external executables.

2010-01-03 applied karyonix's patch(PAE paging).

2010-01-02 applied karyonix's patch(map improvements).

2009-12-30 fixed the failed find. note that the kernel command could hang while loading non-linux kernels, which is a known bug on newish 0.4.5 versions.

2009-12-28 initial implementation of program execution. fixed a bug causing FAT16 search hang(grldrstart.S). version number changed to 0.4.5a.

2009-12-12 moved up 32-bit grub kernel code at above physical addess 3M. moved down buffer for dd and geometry-tune at 0x20000. moved down raw disk buffer at 0x30000. version number changed to 0.4.5.

2009-12-02 (chenall)fixed a bug in color_func(builtins.c).

2009-12-01 (chenall)fixed a bug which caused dd/write to write onto the wrong sector of the disk(fsys_ntfs.c).

2009-11-29 (chenall)fixed a bug when using (md) to access memory at 2G and above(bios.c). improved memmove64 to support overlap(asm.S).



2009-11-25 Caution! Reports say build 2009-11-08 and later will write wrong data onto disk when using dd and/or write commands.



2009-11-13 (chenall)added --replace option for cat. This will write to file. Caution!

noryb009
Posts: 634
Joined: Sat 20 Mar 2010, 22:28

#38 Post by noryb009 »

teasiu: Thanks for that info!

ICPUG
Posts: 1308
Joined: Mon 25 Jul 2005, 00:09
Location: UK

#39 Post by ICPUG »

teasiu

Do you have any details of the status of grub4dos that you have linked to here?

Is it a beta? Is it a fork (by chenall)?

Where is the home page of the project now?

A google search simply leads me to:
gna.org/projects/grub4dos/
but stops with the formal issue of 0.4.4 in March 2009

teasiu
Posts: 13
Joined: Wed 19 Jan 2011, 12:05

#40 Post by teasiu »

ICPUG wrote:teasiu

Do you have any details of the status of grub4dos that you have linked to here?

Is it a beta? Is it a fork (by chenall)?

Where is the home page of the project now?

A google search simply leads me to:
gna.org/projects/grub4dos/
but stops with the formal issue of 0.4.4 in March 2009
ICPUG, hi

I had asked chenall himself just few hours ago.
http://bbs.wuyou.com/viewthread.php?tid=185859

please mark these sites:
The GRUB4DOS source home page is:
http://grub4dos-chenall.googlecode.com
and another download page is:
http://nufans.net/grub4dos/tinybit

chenall can also managerment the site of gna.org/projects/grub4dos/
but just upload the stable code.

more details please download it and see the readme.txt.

Post Reply