Indigo Rose Software

Go Back   Indigo Rose Software Forums > Old Versions > Visual Patch 2.0

 
 
Thread Tools Display Modes
  #1  
Old 10-20-2005
dsmith08 dsmith08 is offline
Forum Member
 
Join Date: Oct 2005
Location: Australia
Posts: 3
Peekaboo! Only Patch Registered users. How?

Hi everyone. Im a new user and now have 3 Indigo products. they are magic, solved lots of distribution problems for me.

At present I want to release my first patch but only want it to patch registered programs. Can I script the patch to open a file and read the contents to verify that the program is registered? and can I decrypt the file contents?

Maybe there is a better way. I learning fast and would appreciate any help.

Cheers,
Dan.
Additional notes - I gave my program away free and encouraged free registration. I want to have everyones details for my database so Im hoping the new features in the patch will encourage more registrations. I dont want it to just update the program and i still dont know who they are. I think that made sense.....
  #2  
Old 10-20-2005
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
You can definitely script just about anything you want to in Visual Patch. What type of encryption was applied to the file you need to read?
  #3  
Old 10-24-2005
dsmith08 dsmith08 is offline
Forum Member
 
Join Date: Oct 2005
Location: Australia
Posts: 3
Peekaboo! Custom encrypt in VB

Quote:
Originally Posted by Brett
You can definitely script just about anything you want to in Visual Patch. What type of encryption was applied to the file you need to read?
Hi Brett,
Thanks for helping. I used a custom encryption in VB (very basic, just designed to discourage rather than secure).

I would be very thankful for some example script to read a plain text file into a variable and then I can write an if then to test it. Once I have that up and running I might be able to figure out the encryption.

The registration file is stored in the windows system directory (ie system32 in xp and system in win98 etc) or simply in the program to be patched directory if this isnt possible.

Cheers for now,
Dan.
  #4  
Old 10-24-2005
Ted Sullivan's Avatar
Ted Sullivan Ted Sullivan is offline
Indigo Rose Staff Member
 
Join Date: Oct 2003
Posts: 825
Hi Dan,

Loading a text file into a string variable is really easy in Visual Patch 2.0.

Quote:
TextFile.ReadToString

string TextFile.ReadToString (
string Filename )

Description
Reads the contents of a text file and returns it as a string.

Parameters
Filename
(string) The full path to the text file.

Returns
(string) A string containing the contents of the text file. If an error occurs, a blank string "" is returned. You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable
When adding an action with the action editor, you can use this field to specify a variable that the return value will be stored in.

Example 1
text_contents = TextFile.ReadToString(_SourceFolder .. "\\Information.txt");

Reads the contents of the file "Information.txt" and stores the string in the variable text_contents.

Note: _SourceFolder is a built-in variable that contains the path to the folder where the setup.exe file is located.
Here's a link to the help file topic for all the details:
http://www.indigorose.com/webhelp/vp...adToString.htm
__________________
Check out the new MSI Factory 2.0!
  #5  
Old 10-30-2005
dsmith08 dsmith08 is offline
Forum Member
 
Join Date: Oct 2005
Location: Australia
Posts: 3
Peekaboo!

Quote:
Originally Posted by Ted Sullivan
Hi Dan,

Loading a text file into a string variable is really easy in Visual Patch 2.0.



Here's a link to the help file topic for all the details:
http://www.indigorose.com/webhelp/vp...adToString.htm
Thanks Ted for your help (I didn't manage to stumble over that help file but have a running start now).
Cheers,
Dan.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Registered users only: put a stop to sharing? patrick6 AutoPlay Media Studio 5.0 17 11-30-2005 02:40 PM
Key Features of Visual Patch 2.0 Ted Sullivan Visual Patch 2.0 0 04-08-2005 03:56 PM
What's New in Visual Patch 2.0? Ted Sullivan Visual Patch 2.0 0 04-08-2005 03:53 PM
Frequently Asked Questions Ted Sullivan Visual Patch 2.0 0 04-08-2005 03:49 PM
Visual Patch 1.0 Documentation Ted Sullivan Visual Patch 1.0 0 11-18-2003 02:53 PM


All times are GMT -6. The time now is 03:13 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software