Announcement

Collapse
No announcement yet.

License Agreement Background

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • License Agreement Background

    Hello,

    i hope iam right here, because i have a little problem.

    I tryed to implement a background into the License Agreements via HTML.
    and i used this code for example:

    Code:
    <body style="background-image:url(http://www.XXXXX/XXX/XXX.jpg)">
    This solution works great! But is there any way to implement the background file directly in Setup Factory, just for the case i will shut down my webserver

    I mean, i can move files into the archiv, but all of them want a destination, is there any way to put the destination on "local use" and i can use this file like:

    Code:
    <body style="background-image:url(%LOCALUSE%/Background.jpg)">
    Thanks for the help and best regards
    Chris

  • #2
    You can use a Session Variable such as "%LOCALUSE%" in your sample.

    You would add the image as a Primer File to your installer. Then, in the On Startup script, set the contents of the %LOCALUSE% Session Variable as being %TempLaunchFolder%, but inverting the backslashes ("\\") to slashes ("/") so it would result in proper HTML.

    Click image for larger version

Name:	SCRN-2014-09-08-02.png
Views:	1
Size:	43.0 KB
ID:	284224
    Code:
    SessionVar.Set("%LOCALUSE%", String.Replace(SessionVar.Expand("%TempLaunchFolder%"), "\\", "/"));
    This results in:
    Click image for larger version

Name:	SCRN-2014-09-08-03.png
Views:	2
Size:	17.2 KB
ID:	284225
    Click image for larger version

Name:	SCRN-2014-09-08-01.png
Views:	1
Size:	149.2 KB
ID:	284223
    Ulrich

    Comment


    • #3
      Hey Ulrich,

      this does not work here =/...


      1: I put this code in "On Startup":
      Code:
      SessionVar.Set("%LOCALUSE%", String.Replace(SessionVar.Expand("%TempLaunchFolder%"), "\\", "/"));
      2. I put my background file in the "Primer File":

      Filename: Background.jpg
      Build Configurations: All
      Delete On Exit: True
      Used By Uninstall: False

      3. I implemented this Code into the License Agreements:

      Code:
      <style type="text/css">
      body {
                    background-image:url(%LOCALUSE%/Background.jpg);
                    background-repeat:no-repeat;
      }
      </style>
      And yeah, still no Background.. Maybe i made a mistake?

      And i have no Idea where you are at this screenshot:

      Click image for larger version

Name:	SCRN-2014-09-08-03.png
Views:	2
Size:	17.2 KB
ID:	284226

      Comment


      • #4
        Please attach the project file.

        Ulrich

        Comment


        • #5
          Hey Ulrich,

          thanks for your really fast help here!

          You can find an empty project only with the background try in the attachments!

          Cheers
          Chris
          Attached Files

          Comment


          • #6
            When you run the setup, right-click the HTML and select "View source". Check if there is an error in what is shown, and if the file does indeed exist at the location. In my tests everything works correctly, but you probably should remove the extra slash in "<//html>". To make sure that your HTML is valid, you can use a syntax checker - there should be a "head" element for the "style" section, and the text should be placed into a "body" tag, etc.

            Click image for larger version

Name:	2014-09-08_10-30-58.jpg
Views:	1
Size:	88.4 KB
ID:	284228

            Ulrich

            Comment


            • #7
              Hey Ulrich,

              i double Checked everything.... It works now!

              Solution: The Background wont be shown in the Preview, only if you run the setup... i only was watching in the preview !

              Cheers and thanks
              Chris!

              Comment

              Working...
              X
              😀
              🥰
              🤢
              😎
              😡
              👍
              👎