forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Getting around EMAIL SYSTEMS deleting *.EXEs & *.ZIPs

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Mon Feb 16, 2004 1:13 pm    Post subject: Getting around EMAIL SYSTEMS deleting *.EXEs & *.ZIPs Reply with quote

Updates and new versions of my applications are distributed as small emails containing self-extracting zip files. This has been fine to date, but as more and more email systems ban both ZIP and EXE files, I am having difficulty distributing updates.

Is there a way to make a particular extension executable on a users' system? For instance, all files ending in *.FLE (i.e. SETUP.FLE) run as executables. I use INNO SETUP to build installation files and I can use this to add entries to the Users' registries. BUT what would the registry entry for the *.FLE extension contain?

Any guidance appreciated?!

Thanks in advance

_________________
Andrew GRAY
If you don't know I am looking for work, I won't get the job.

andrewrcgray.com
Back to top
View user's profile Send private message Send e-mail
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Mon Feb 16, 2004 1:18 pm    Post subject: Reply with quote

Hey Andy,

While I have no doubt about your intentions, I'm not
sure we should answer something like this in a public
forum...

I'm sure you can understand the potential for harm. Wink

Cheers, Mac Smile

[EDIT] BTW, this was the part I was referring to:
arcray wrote:

Is there a way to make a particular extension executable
on a users' system?

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361


Last edited by Mac on Mon Feb 16, 2004 1:32 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Mon Feb 16, 2004 1:23 pm    Post subject: Reply with quote

If servers block ZIP files, you could try other methods like ARJ or RAR, which are both supported by most unzip programs (like Winzip).
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Feb 16, 2004 1:47 pm    Post subject: Reply with quote

You can use the script I wrote to create CAB files, which are native to any
Windows system. Smile I'll post an example for you in a few minutes. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Mon Feb 16, 2004 2:11 pm    Post subject: Reply with quote

Quote:

You can use the script I wrote to create CAB files, which are native to any
Windows system. I'll post an example for you in a few minutes.


Yes, that would help?!

_________________
Andrew GRAY
If you don't know I am looking for work, I won't get the job.

andrewrcgray.com
Back to top
View user's profile Send private message Send e-mail
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Mon Feb 16, 2004 3:12 pm    Post subject: Reply with quote

One simple idea is to send your file a say setup.rle or some other extension of your choice. Now in your program give a update button.
Ask your user to place the file in your app directory and press update. Now your app will rename the file to a exe and run it.

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Mon Feb 16, 2004 5:58 pm    Post subject: Reply with quote

I suggest offering them a URL where they can download the software at. This allows them to optionally choose to download the upgrade or not. Plus you do not clog up their email box if they did not want the update.
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Feb 16, 2004 6:51 pm    Post subject: Reply with quote

I agree with Prakash - sending updates through e-mail is not the best
option, however, you can send an update notification through e-mail,
and as Prakash said, just give them a link to download the update. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Tue Feb 17, 2004 10:24 am    Post subject: Reply with quote

Most of my users do not have internet access. And the file I send out each week is a key that allows the continued use of the main software...

And it also contains weekly rate changes which must be updated on all machines that use the software

_________________
Andrew GRAY
If you don't know I am looking for work, I won't get the job.

andrewrcgray.com
Back to top
View user's profile Send private message Send e-mail
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Feb 17, 2004 4:10 pm    Post subject: Reply with quote

arcray wrote:
Most of my users do not have internet access.


How do you want to E-mail it then? If you use internal E-mail, I suppose you can ask the network administrator if he could remove the ZIP and EXE file blocks from internal communications... Smile

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Feb 17, 2004 9:04 pm    Post subject: Reply with quote

Are you still interested in the .CAB creator code? Smile
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Wed Feb 18, 2004 2:45 am    Post subject: Reply with quote

Quote:
Are you still interested in the .CAB creator code?


Yes, I am!

_________________
Andrew GRAY
If you don't know I am looking for work, I won't get the job.

andrewrcgray.com
Back to top
View user's profile Send private message Send e-mail
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Feb 18, 2004 3:03 am    Post subject: Reply with quote

Here you go. Smile
It requires VDS 5... do you have VDS 5?

Also you will need do download the CAB10.DLL, which you can get in
the following package:
http://freezingfire.vdsworld.com/files/cab10.cab

Code:
Title CAB Creator
  DIALOG CREATE,Cab Creator,-1,0,328,207
  DIALOG ADD,STYLE,BOLD,,,B,,
  DIALOG ADD,GROUP,FilesToCompress,9,10,307,185,Files to Compress
  DIALOG ADD,TABLE,CabList,26,18,291,133,File Name[110]|Location,,COLUMNSORT
  DIALOG ADD,BUTTON,Add,162,18,101,24,Add File
  DIALOG ADD,BUTTON,Remove,162,120,101,24,Remove Selected
  DIALOG ADD,BUTTON,Create,162,222,88,24,Create CAB,,BOLD
  DIALOG SHOW
:Evloop
dialog enable,cablist
dialog enable,add
dialog enable,remove
dialog enable,create
  wait event
  goto @event()
:AddBUTTON
  %Z = @filedlg("All Files (*.*)|*.*",,,MULTI)
  if @not(@ok())
    goto evloop
  end
  list create,5
  list assign,5,%Z
  %x = 0
  repeat
  %F = @item(5,%x)
    if @both(@ok(),@file(%F))
      %%ext = @ext(%F)
      if @both(@unequal(%%ext,"exe"),@unequal(%%ext,"ico"))
      %%type = @regread(ROOT,"."%%ext,,FILE_TYPE_DOES_NOT_EXIST)
        if @unequal(%%type,FILE_TYPE_DOES_NOT_EXIST)
          %%icon = @regread(ROOT,%%type\DefaultIcon,,FILE_ICON_DOES_NOT_EXIST)
        else
          %%icon = #other.bmp
        end
      else
        %%icon = %F
      end
        if @not(@path(%%icon))@equal(%%icon,FILE_ICON_DOES_NOT_EXIST)
          if @not(@ext(%F))
            list add,CabList,@name(%F)@tab()@path(%F)|#other.bmp
          end
        else
          list add,CabList,@name(%F)"."@ext(%F)@tab()@path(%F)|%%icon
        end
    end
    %%icon = ""
    %x = @succ(%x)
    until @equal(%x,@count(5))
    list close,5
  goto evloop
:RemoveBUTTON
  if @item(CABList)
    list delete,CABList
  end
  goto evloop
:CreateBUTTON
dialog disable,cablist
dialog disable,add
dialog disable,remove
dialog disable,create
if @zero(@count(CABList))
    warn You must add files first
    goto evloop
end
# Make full paths list
%x = 0
list create,4
repeat
  option fieldsep,@tab()
  PARSE "%%name;%%path",@item(CABList,%x)
  option fieldsep,|
  %%fpath = %%path%%name
  list add,4,%%fpath
  %x = @succ(%x)
until @equal(%x,@count(CABList))
  %%CabFile = @filedlg("CAB Files (*.cab)|*.cab",Save As,,SAVE)
  if @not(@ok())
    goto evloop
  end
  if @unequal(@ext(%%CabFile),"cab")
  %%CabFile = %%CabFile".cab"
  end
  loadlib cab10.dll
  %A = @lib(cab10,CABCOMPRESSINITIALIZE,INT:)
  if @zero(%A)
    warn Error initializing file
    goto evloop
  end
  %%HCabFile = @lib(cab10,CABCREATE,INT:,STR:%%CabFile)
  if @zero(%%HCabFile)
    warn Unable to create file
    goto evloop
  end
  %x = 0
  repeat
  %%item = @item(4,%x)
  %A = @lib(cab10,CABADDFILE,INT:,INT:%%HCabFile,STR:%%item,STR:%%item)
  if @zero(%A)
    warn Failure adding file:@cr()%%item
  end
  %x = @succ(%x)
  until @equal(%x,@count(4))
  list close,4
  %A = @lib(cab10,CABCLOSE,INT:,INT:%%HCabFile)
  %A = @lib(cab10,CABCOMPRESSTERMINATE,INT:)
  freelib cab10.dll
  if @not(@zero(@file(%%CabFile,Z)))
    info CAB File Successfully Created at:@cr()%%CabFile
  else
    warn An unknown error ocurred sometime when creating the cabinet file. Try saving in a different location.
  end
  goto evloop
:Close
  exit

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Thu Feb 19, 2004 9:06 am    Post subject: Reply with quote

Thanks for that! I will find it very useful for future projects. In the meantime I am using the executable suffix route...


Andy

_________________
Andrew GRAY
If you don't know I am looking for work, I won't get the job.

andrewrcgray.com
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group