midiboy Posted February 2, 2005 Posted February 2, 2005 Hi Benjamin,I hope I am not disturbing your studying for exams too much ... Just came across a situation where I would want an option in Wihu to toggle between two programs to be installed. The reason is this:I want to give the user an option to choose between two versions of a program to install. Version 1 and 2 for instance.He can choose to install version 1 or versions 2 or no version at all but he should not be allowed to check both versions since that would lead to conflicts during installation.I am not sure if there is a command for this yet in Wihu. Or is there ? It should be that if the user selects version 1, he should not be able to check version 2 anymore and vice versa.Anyway, would be nice to have something like that ...Thanks ,Bye,Alex
XPect Posted February 2, 2005 Posted February 2, 2005 This one is quite easy, it's show in the install.ini that come with wihudescription.0.1.2=Group testcommand.0.1.2=cmd.exe /c @echo command.0.1.2group.0.1.2=1description.0.1.2.0=Option 1command.0.1.2.0=cmd.exe /c @echo Option 1description.0.1.2.1=Option 2command.0.1.2.1=cmd.exe /c @echo Option 2description.0.1.2.2=Option 3command.0.1.2.2=cmd.exe /c @echo Option 3selected.0.1.2.1 = 1group.0.1.2.0=1The command to use is goup.x = 1This signify that the lower levels are options and that you can only select one of them.Hope this help.
midiboy Posted February 2, 2005 Author Posted February 2, 2005 Hi XPect,thanks for your help. However, I don´t get it ... I tried this:[Diverses]Description.0=Programm 1command.0=CMD /C "%WIHU%\..\Test\silent_install.cmd"workdir.0="%WIHU%\..\Test"selected.0=0group.1=1Description.1.0=Option 1command.1.0=CMD /C "%WIHU%\..\Option1\silent_install.cmd"workdir.1.0="%WIHU%\..\Option1"selected.1.0=0Description.1.1=Option 2group.1=1command1.1=CMD /C "%WIHU%\..\Option2\silent_install.cmd"workdir.1.1="%WIHU%\..\Option2"selected.1.1=1Description.2=Programm 3command.2=CMD /C "%WIHU%\..\Test2\silent_install.cmd"workdir.2="%WIHU%\..\Test2"selected.2=1The result is that only program 1 is displayed. I am tired ... Bye,Alex
BenjaminKalytta Posted February 2, 2005 Posted February 2, 2005 Your INI section isn't correct.Example:[Diverses]group.1 = 1command.1 = cmd.exedescription.1 = Option 1command.1.0 = cmd.exedescription.1.0 = Option 1.0command.1.1 = cmd.exedescription.1.1 = Option 1.1This will produce following output:Diverses[ ] Option 1 ( ) Option 1.0 ( ) Option 1.1I hope I am not disturbing your studying for exams too much ...Im really very stressed at the moment until 13th. I failed at least 2 examinations right now. That's very annoying. But after 13th I've enough time to do necessary left out work on WIHU Benjamin Kalytta
midiboy Posted February 2, 2005 Author Posted February 2, 2005 Hi Benjamin,thanks, yes, it works now. Seemingly one has to add a command at the top group position (command.1 in your example), otherwise it does not work. I added a dummy command now and it works.Im really very stressed at the moment until 13th. I failed at least 2 examinations right now. That's very annoying. But after 13th I've enough time to do necessary left out work on WIHUGood luck then ! ByeAlex
BenjaminKalytta Posted February 3, 2005 Posted February 3, 2005 Btw. adding group = 1 on top tree like following is also possible:[section]group = 1command.0 = cmd.exedescription.0 = Option 1command.1 = cmd.exedescription.1 = Option 2Benjamin Kalytta
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now