Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 7:20 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Hide show Page Script
PostPosted: April 18th, 2009, 7:48 am 
Offline

Joined: October 10th, 2007, 8:12 am
Posts: 46
Location: Belmont North NSW Australia
Opus: opus pro v7 trial
OS: Win 7
System: Gigabyte GA-X58A-UD3R ATX Motherboard, 3gig ram
I have 2 pages. Unistalled and Installed.
The installer creates a folder in the Windows Directory called Test
If the folder has been installed the call should then be the Installed page
I've been working on this this for 2 days and have had no luck.
Can some kind soul please help out?

Ted

_________________
Ted C
Lake Macquarie NSW Australia
----------------------------------------------
Gigabyte GA-X58A-UD3R ATX Motherboard, 3gig ram


Top
 Profile  
 
 Post subject:
PostPosted: April 18th, 2009, 6:43 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Ted,

Not sure what you mean. Can you post an example for people to look at?

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: April 18th, 2009, 8:28 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Ted,

I think if you create a basic file, say ABC.ini, and include that in the Test Folder... then in Opus you can have a script or action to check for varABC.FileExists()... which will return true or false.

Look-up in the Help Files (either one: Content&Index help or OpusScript help):
Open File
FileExists
Close

There have been similar questions on the forum in the past and a Search for folder exists file exists install... could provide added info, maybe even sample files (if logged on).

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: April 18th, 2009, 9:20 pm 
Offline

Joined: October 10th, 2007, 8:12 am
Posts: 46
Location: Belmont North NSW Australia
Opus: opus pro v7 trial
OS: Win 7
System: Gigabyte GA-X58A-UD3R ATX Motherboard, 3gig ram
mackavi wrote:
Hi Ted,

Not sure what you mean. Can you post an example for people to look at?

Mack


Here's an Opus file example.


You do not have the required permissions to view the files attached to this post.

_________________
Ted C
Lake Macquarie NSW Australia
----------------------------------------------
Gigabyte GA-X58A-UD3R ATX Motherboard, 3gig ram


Top
 Profile  
 
 Post subject:
PostPosted: April 18th, 2009, 10:47 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Maybe it because it's late Saturday, but I cannot find a single action in the publication that would cause it do anything???

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: April 18th, 2009, 11:07 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
Hi Ted,
Can you explain a bit more about what you are trying to do?.



The IMP you have attached has no actions or scripts, so it can't do anything.


If you give more information about what you are trying to achieve, you will get lots of suggestions.

Sandy

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: April 19th, 2009, 12:38 am 
Offline

Joined: October 10th, 2007, 8:12 am
Posts: 46
Location: Belmont North NSW Australia
Opus: opus pro v7 trial
OS: Win 7
System: Gigabyte GA-X58A-UD3R ATX Motherboard, 3gig ram
Okay here's what I'm trying to achieve:
I'm creating a trial application in Opus 6 for a Jack Russell Terrier racing program that is already coded and a running application. This has been done.
The program opens with an install page that will install the program once an INSTALL button is clicked. The .exe file of this program will be a hidden file and placed in an obscure Windows directory.
The second page has a splash screen with a RUN PROGRAM button.
Now, once the program has been installed, the first page needs to be hidden so as the user will not try and install the program again.
I hope this makes sense
Thanks a million
Ted


You do not have the required permissions to view the files attached to this post.

_________________
Ted C
Lake Macquarie NSW Australia
----------------------------------------------
Gigabyte GA-X58A-UD3R ATX Motherboard, 3gig ram


Top
 Profile  
 
 Post subject:
PostPosted: April 19th, 2009, 9:23 am 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
I'm beginning to understand, but still not sure.......but if someone else understands...please jump in and answer.


In general....there are a few ways of doing the kind of thing you are trying to do.....
as Larry suggests..

In script, You can test for the existence of a file you know will exist if the program is installed.

You can check the registry for the installed program if it was installed by an installer.
You can create a registry entry, then check for it.

You can create an ini file use an INI file (just a structured file)


What I don't follow is the sequence of how the programs are installed and why you need the option for an install button? Are they two different programs or are you trying to create a front end for the racing program?



Sandy

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: April 19th, 2009, 10:01 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
'yes', as Sandy says... it is not clear.

So I will challenge the statement of the problem and turn it around like this:

Suppose the first page the User sees is a welcome or splash page in Chapter 1. (that can be a different/smaller page size that Chapter 2 which might hold the main program).

Rather than think 'showing or not showing a Page', think Page 1 always shows (or maybe has an option to 'skip the intro'). Page 1 could have TWO buttons: Install, and Run Program. Here's a simple solution:

Initially, use an action to Disable, and/or Hide, the Run Program button. The only option is Install (oh, and 'exit'). Once installed, you can set a Publication level variable to 'true'. You can also make the 'test folder' has file abc.ini --- part of your condition for setting 'true'.

Another similar approach on Page 1 is to use a MultiFrame with TWO frames. One has the 'Run Program' feature. The other has the 'Install Now' button/action.

BTW, I for one would be suspicious of something installing in other than Program Files folder.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: April 19th, 2009, 9:37 pm 
Offline

Joined: October 10th, 2007, 8:12 am
Posts: 46
Location: Belmont North NSW Australia
Opus: opus pro v7 trial
OS: Win 7
System: Gigabyte GA-X58A-UD3R ATX Motherboard, 3gig ram
Thanks Lar_123 & Sandyn
I'm not a coder as such so that's part of the problem.
Lar_123 has hit on the answer(I think in his last post)

I've attached the working Opus files (Graphics not completed for installer page) This will give you a better idea of what I'm after.

Once the program is installed the instlaller page needs to be hidden.

The program is copy protected by Opus security as a 60 day trial and will only run from the CD, that's the reason for placing the exe in an obscure directory so as the end user can't easily find it.


You do not have the required permissions to view the files attached to this post.

_________________
Ted C
Lake Macquarie NSW Australia
----------------------------------------------
Gigabyte GA-X58A-UD3R ATX Motherboard, 3gig ram


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 59 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group