Welcome
Welcome to refracta

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

Remove the "Simple Installation" from Refracta Installer

Tips and Instructional topics. Not for support questions.

Remove the "Simple Installation" from Refracta Installer

Postby burntnoodle » Mon Mar 13, 2017 1:29 am

Thanks to fsmithred for giving me a clue on where to look in order to remove the Simple Installation option.

The file is found in /usr/bin/refractainstaller-yad

If line numbers are enabled, the line to change is #193

Here's what the line looks like before editing it.

Code: Select all
yad --title="$window_title" --width=480 --button=$"Simple installation":0 \


To remove the Simple Installation option, remove

--button=$"Simple Installation":0

The line will now appear as this.

Code: Select all
yad --title="$window_title" --width=480 \


I also changed line #194 so that the button now says "Begin Installation" instead of "Expert Installation".

I haven't tried an installation with the changes yet. I hope to do that later this evening.
burntnoodle
 
Posts: 26
Joined: Thu Feb 23, 2017 3:27 am

Re: Remove the "Simple Installation" from Refracta Installer

Postby burntnoodle » Mon Mar 13, 2017 2:17 am

Installation was perfect.

By changing that one line, the "Simple Installation" button was removed, leaving only the Expert Installation and Exit buttons.
burntnoodle
 
Posts: 26
Joined: Thu Feb 23, 2017 3:27 am

Re: Remove the "Simple Installation" from Refracta Installer

Postby fsmithred » Mon Mar 13, 2017 2:19 am

You can pull out parts of the script and test them separately. Like this -

Code: Select all
#!/bin/bash

yad --title="$window_title" --width=480 \
   --button=$"Begin installation":1 --button=$"Exit":2 --center \
   --text=$"$live_session_warning

This utility will install a running live-CD or live-USB to your hard drive.

This is free software that comes with no warranty or guarantee of any
type, including but not limited to express, implied, merchantability or
fitness of purpose.

Copyright 2011-2015 [email protected],
based on refractainstaller-8.0.3 by Dean Linkous. \n Version: $version \n\n\
${custom_text} \n
"
mode="$?"
   case $mode in
      0) install="simple" ;;
      1) install="expert" ;;
      2) exit 0 ;;
   esac

echo -e "\n\t$install\n"


Save it as a file, run 'bash <file>' and see what output you get by pressing the buttons (or just hitting enter).

Spoiler: it works.
User avatar
fsmithred
 
Posts: 2089
Joined: Wed Mar 09, 2011 9:13 pm


Return to How-to

Who is online

Users browsing this forum: No registered users and 0 guests

suspicion-preferred