Unusal Script

Started by davethomson, October 02, 2014, 10:00:52 PM

Previous topic - Next topic

Randem

If we were to erase the whole conversation then no one else could benefit from it. That is the whole purpose of this site...  8)

davethomson

I am sorry about posting all the script.  I am so frustrated at what I am doing that I just can't see straight and can't keep things straight in my mind when doing all this.  But thank you very much for the help.  Perhaps we/you can just erase the whole conservation.

Randem

Dave,

I did ask that you NOT post the script but attach it as a file... ??? It takes up too much display space when you post the text instead of attaching it as a file.

BTW: in your script you have the media player as a component, so it is in your VB project as a component. You would need to go into VB6, open your project then select the menu item Project->Components then un-select the Windows Media player dll. That will solve your issue.


; --------------------------
;        Components
; --------------------------

; Windows Media Player - (wmp.dll)

davethomson

The two line of code that are not needed are for "wmp.dll" and "dwmapi.dll".  Hope this helps.

; InnoScript Version 10.5  Build 9
; Randem Systems, Inc.
; Copyright (c) 2002 - 2011, Randem Systems, Inc.
; Website:  https://randemsystems.com
; Support:  https://randemsystems.com/cgi-bin/discus/discus.cgi
; OS: Windows NT 6.1 build 7601 (Service Pack 1)

; Derived from VB VBP Project File

; Designed for Inno Setup Version: 5.4.2 (a)
; Installed Inno Setup Version: 5.4.2 (a)

; Date: October 03, 2014

; Local Machine Settings. Use these settings as a template for your installation folders

; {app}           : C:\Program Files (x86)\Randem Systems\InnoScript
; {appdata}       : C:\Users\Dave\AppData\Roaming\Randem Systems\InnoScript\
; {localappdata}  : C:\Users\Dave\AppData\Local\Randem Systems\InnoScript\
; {cf}            : C:\Program Files (x86)\Common Files\Randem Systems
; {tmp}           : C:\Users\Dave\AppData\Local\Temp\
; {commonappdata} : C:\ProgramData\Randem Systems\InnoScript\Release\
; {pf}            : C:\Program Files (x86)\

;              VB Runtime Files Folder:   C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\
;     Visual Basic Project File (.vbp):   C:\Golf Course Calendar Programs\Golf Course Calendar.vbp
; Inno Setup Script Output File (.iss):   C:\Golf Course Calendar Programs\Golf Course Calendar 6.0.0.iss
;:   C:\Golf Course Calendar Programs\Templates\Golf Course Calendar.tpl
;:   C:\Users\Dave\AppData\Local\Randem Systems\InnoScript\Release\Templates\Release.tpl

; ------------------------
;        References
; ------------------------



; --------------------------
;        Components
; --------------------------

; Windows Media Player - (wmp.dll)


[Setup]
SetupLogging=Yes
AppId=DisplayCalendar

;------------------------------------------------------------------------------------------------------------------------
; Taken from VBP/VBG Project File Parameters AppName, AppName AppVersion and Company
;------------------------------------------------------------------------------------------------------------------------

AppName=DisplayCalendar 6.0.0
AppVerName=DisplayCalendar
AppPublisher=Visual Golf Software

;------------------------------------------------------------------------------------------------------------------------

AppVersion=6.0.0
VersionInfoVersion=6.0.0
AllowNoIcons=yes
DefaultGroupName=Golf Course Calendar
DefaultDirName=c:\Golf Course Calendar
AppCopyright=Copyright 2014
PrivilegesRequired=Admin
MinVersion=4.1,6.01
OnlyBelowVersion=4.9,7.0
Compression=lzma
OutputBaseFilename=Golf Course Calendar

[Tasks]
Name: Desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}

[Files]
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\MSVBVM60.DLL; DestDir: {sys}; Flags:  regserver restartreplace sharedfile uninsneveruninstall; OnlyBelowVersion: 0,6
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\STDOLE2.TLB; DestDir: {sys}; Flags:  regtypelib restartreplace sharedfile uninsneveruninstall; OnlyBelowVersion: 0,6
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\COMCAT.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile uninsneveruninstall; OnlyBelowVersion: 0,6
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\VB5DB.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile uninsneveruninstall;
Source: C:\Golf Course Calendar Programs\calendar.ico; DestDir: {app}; Flags:  ignoreversion;
Source: C:\Golf Course Calendar Programs\ads.txt; DestDir: {app}; Flags:  ignoreversion;
Source: C:\Golf Course Calendar Programs\America's Home Place.jpg; DestDir: {app}; Flags:  ignoreversion;
Source: C:\Golf Course Calendar Programs\Anderson Computer Systems.jpg; DestDir: {app}; Flags:  ignoreversion;
Source: C:\Golf Course Calendar Programs\Arbortech ad.jpg; DestDir: {app}; Flags:  ignoreversion;
Source: C:\Golf Course Calendar Programs\Golf USA.jpg; DestDir: {app}; Flags:  ignoreversion;
Source: C:\Golf Course Calendar Programs\Mama Penn's.jpg; DestDir: {app}; Flags:  ignoreversion;
Source: C:\Golf Course Calendar Programs\notices.txt; DestDir: {app}; Flags:  ignoreversion;
Source: C:\Golf Course Calendar Programs\Roto-Rooter.jpg; DestDir: {app}; Flags:  ignoreversion;
Source: C:\Golf Course Calendar Programs\Straight Paths.jpg; DestDir: {app}; Flags:  ignoreversion;
Source: C:\Golf Course Calendar Programs\vgs.jpg; DestDir: {app}; Flags:  ignoreversion;
Source: C:\Golf Course Calendar Programs\coursename.txt; DestDir: {app}; Flags:  ignoreversion;
Source: C:\Golf Course Calendar Programs\Findlay Roofing.jpg; DestDir: {app}; Flags:  ignoreversion;
Source: wmp.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: C:\Golf Course Calendar Programs\Golf Course Calendar.exe; DestDir: {app}; Flags:  ignoreversion restartreplace;
Source: dwmapi.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;

[INI]
Filename: {app}\Golf Course Calendar.url; Section: InternetShortcut; Key: URL; String:

[Icons]
Name: {group}\DisplayCalendar ; Filename : {app}\Golf Course Calendar.exe; WorkingDir: {app}; IconFilename: {app}\calendar.ico;
Name: {group}\{cm:ProgramOnTheWeb, DisplayCalendar }; Filename: {app}\Golf Course Calendar.url; IconFilename: {app}\calendar.ico;
Name: {group}\{cm:UninstallProgram, DisplayCalendar }; Filename: {uninstallexe};
Name: {commondesktop}\DisplayCalendar ; Filename: {app}\Golf Course Calendar.exe; Tasks: Desktopicon ; WorkingDir: {app}; IconFilename: {app}\calendar.ico;

[Run]
Filename: {app}\Golf Course Calendar.exe; Description: {cm:LaunchProgram, DisplayCalendar }; Flags: nowait postinstall skipifsilent runascurrentuser; WorkingDir: {app}

[UninstallDelete]
Type: files; Name: {app}\Golf Course Calendar.url
Type: dirifempty; Name: {app}


[Comments]


//    Template Processing first character indicators usage.
//
//            No Indicator      Attempt replacement if cannot replace then add the line
//     +       Plus Sign      Force addition of template line into script (no attempted replacement).
//     ;      Semi-colon      Add line as a comment only. (No attempted replacement).
//     -      Minus Sign      Delete the line. (No attempted replacement).
//     &      Ampersand      Comment the line. (No attempted replacement).
//

Randem

Same suggestion as before... attach the script.

davethomson

Nope, on my PC, a Windows 7 platform.  But, using your program I did put in on a Vista, i.e. on my laptop, by using the Vista option for the NT Version.  Just curious, the Windows 7 .exe will, or should, run on the latest Windows computer? Still haven't taken the time to investigate a reference to a video in the program source but will get around to it soon.

Just check source code for "problem" program and could not find any references to either "mp4" or "video"  I have no idea how else to search for code that  might reference video.  any suggestions?

Randem

You are welcome. Are you creating the script on Vista?

davethomson

Thanks for the help.  I did remove the two references and the program compiled just fine.  I will check my code to see where I might have referenced the media player.

And, yes, next time I will post the entire script file.

Thanks again. Great program, InnoScript, and I use both the old and current versions.

Randem

Hi Dave,

Actually you don't need to delete the files if you place the two lines in your programs template file like so:

[Files]
-Source: wmp.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
-Source: dwmapi.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;


Then each time you run InnoScript these files will automatically be removed. As for the other issue of one search finding these files and one did not; wmp.dll is a Windows Media Player file so something in your application is calling it. the other file dwmapi.dll is a Vista only file. You don't give enough information to clarify any further. It would be helpful that when you have an issue you include a upload of your scripts (Do not post the script in the post attach it).

davethomson

Hello Again:

Just ran into a problem.  I have two programs I am work with using InnoScrip, Display Calendar and Display Calendar Notices.  The first script tries to find these two file:

Source: wmp.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: dwmapi.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;

I have to delete these two "Source" lines in order to compile the program.  But, when I "set up" the 2nd, Display Calendar Notices these two files don't appear.

I am using the same script file, i.e. every thing is the same except for the program I want to use.

I have re-run InnoScript on another one of my program and these two files don't appear.

Should I be concerned?